Files
apimacro/app/Http/Controllers/TestPaoController.php
2024-05-16 19:27:26 +02:00

25 lines
451 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Artisan;
class TestPaoController extends Controller
{
public function runTestPao()
{
try {
echo "run";
Artisan::call('product:testpao', []);
} catch (\Exception $e) {
// Log or handle the exception here
}
}
public function provapao()
{
$this->runTestPao();
echo "Test OK!";
}
}