php artisan make controller product laravel code example
Example 1: php artisan create controller inside folder
php artisan make:controller App\\pathName/controllerName
Example 2: use php artisan command through controller
<?php
Route::get('/foo', function () {
Artisan::queue('email:send', [
'user' => 1, '--queue' => 'default'
]);
//
});