testpao controller

This commit is contained in:
paoloar77
2024-05-16 19:27:26 +02:00
parent 0ce4a72e9d
commit 1f04085006
7 changed files with 36 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
<?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!";
}
}