Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel execute command arguments

use IlluminateSupportFacadesArtisan;
 
Route::post('/user/{user}/mail', function ($user) {
    $exitCode = Artisan::call('mail:send', [
        'user' => $user, '--queue' => 'default'
    ]);
 
    //
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #execute #command #arguments
ADD COMMENT
Topic
Name
9+3 =