---
# System prepended metadata

title: laravel artisan
tags: [Laravel]

---

# laravel artisan 

## 從任何地方啟動 Artisan 命令 
Artisan::call()

```
Route::get('/foo', function () {
    $exitCode = Artisan::call('email:send', [
        'user' => 1, '--queue' => 'default'
    ]);

    //
});
```


## 每小時任務
https://www.youtube.com/watch?v=r-KrsQ0dN80

###### tags: `Laravel`
