Answers for "how to create controller by command with methods laravel"

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 "how to create controller by command with methods laravel"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language