Answers for "use artisan command in controller"

3

laravel create controller command

php artisan make:controller UserController
Posted by: Guest on June-01-2020
0

use php artisan command through controller

<?php
Route::get('/foo', function () {
    Artisan::queue('email:send', [
        'user' => 1, '--queue' => 'default'
    ]);
    //
});
Posted by: Guest on October-12-2020

Code answers related to "use artisan command in controller"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language