You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(3) Optional: whitelist route for maintenance mode
54
+
55
+
This step is optional, but highly recommended. To allow jobs to keep running if the application is down (`php artisan down`) you must modify the `PreventRequestsDuringMaintenance` middleware:
56
+
57
+
```diff
58
+
<?php
59
+
60
+
namespace App\Http\Middleware;
61
+
62
+
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
63
+
64
+
class PreventRequestsDuringMaintenance extends Middleware
65
+
{
66
+
/**
67
+
* The URIs that should be reachable while maintenance mode is enabled.
68
+
*
69
+
* @var array
70
+
*/
71
+
protected $except = [
72
+
+ '/cloud-scheduler-job',
73
+
];
74
+
}
75
+
76
+
```
77
+
53
78
# Cloud Scheduler Example
54
79
55
80
Here is an example job that will run `php artisan schedule:run` every minute.
0 commit comments