Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel create command tutorial

use AppModelsUser;
use AppSupportDripEmailer;

Artisan::command('email:send {user}', function (DripEmailer $drip, $user) {
    $drip->send(User::find($user));
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #create #command #tutorial
ADD COMMENT
Topic
Name
2+5 =