File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 12
12
// 'ip' => '\App\Models\YourIpModel',
13
13
],
14
14
15
- 'unblockip_cron ' => [
16
- 'enabled ' => boolval ( env ('FIREWALL_UNBLOCKIP_ENABLED ' , true ) ),
17
- 'cron ' => env ('FIREWALL_UNBLOCKIP_CRON ' , '* * * * * ' ),
15
+ 'cron ' => [
16
+ 'enabled ' => env ('FIREWALL_CRON_ENABLED ' , true ),
17
+ 'expression ' => env ('FIREWALL_CRON_EXPRESSION ' , '* * * * * ' ),
18
18
],
19
+
19
20
'responses ' => [
20
21
21
22
'block ' => [
Original file line number Diff line number Diff line change @@ -106,11 +106,9 @@ public function registerCommands()
106
106
{
107
107
$ this ->commands (UnblockIp::class);
108
108
109
- if (config ('firewall.unblockip_cron .enabled ' , true )) {
109
+ if (config ('firewall.cron .enabled ' )) {
110
110
$ this ->app ->booted (function () {
111
- app (Schedule::class)
112
- ->command ('firewall:unblockip ' )
113
- ->cron (config ('firewall.unblockip_cron.cron ' , '* * * * * ' ));
111
+ app (Schedule::class)->command ('firewall:unblockip ' )->cron (config ('firewall.cron.expression ' ));
114
112
});
115
113
}
116
114
}
You can’t perform that action at this time.
0 commit comments