I'm using Artisan::output();
it return ""
this in Laravel 5.4. How can I fix this ?
My code:
Artisan::call('backup:run');
$output = json_decode(Artisan::output());
I'm using Artisan::output();
it return ""
this in Laravel 5.4. How can I fix this ?
My code:
Artisan::call('backup:run');
$output = json_decode(Artisan::output());
Please try this:
\Artisan::call('backup:run');
$output = json_decode(\Artisan::output());
Please, \ used for global access.