testpao controller
This commit is contained in:
24
app/Http/Controllers/TestPaoController.php
Normal file
24
app/Http/Controllers/TestPaoController.php
Normal 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!";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user