I want to send email from php artisan schedule. When I try artisan command in browser, email is being sent well. But in artisan command, it is not being send. I am not sure why it is.
My artisan console command
UpdateBet.php
protected $signature = 'update:bet';
....
public function handle()
{
$user=User::find(680);
Mail::to($user->email)->send(new VerifyMail(User::find(680)));
}
And in my web.php
Route::get('/update/bet',function (){
Artisan::call('update:bet');
});