Question : artisan make command
Answered by : rafael
php artisan make:command CommandName
Source : | Last Update : Wed, 10 Jun 20
Question : laravel create command tutorial
Answered by : hungry-hare-k2tq7zy6kcsn
Artisan::command('build {project}', function ($project) { $this->info("Building {$project}!");
})->describe('Build the project');
Source : https://laravel.com/docs/8.x/artisan#options | Last Update : Mon, 14 Dec 20
Question : laravel create command tutorial
Answered by : hungry-hare-k2tq7zy6kcsn
use App\Models\User;
use App\Support\DripEmailer;
Artisan::command('email:send {user}', function (DripEmailer $drip, $user) { $drip->send(User::find($user));
});
Source : https://laravel.com/docs/8.x/artisan#options | Last Update : Mon, 14 Dec 20