| 1 | <?php |
||
| 10 | class DebugServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | 15 | public function boot(): void |
|
| 13 | { |
||
| 14 | 15 | $ips = config('lodash.debug.ips', []); |
|
| 15 | 15 | $ip = app(Request::class)->getClientIp(); |
|
| 16 | 15 | if (! in_array($ip, $ips)) { |
|
| 17 | 15 | return; |
|
| 18 | } |
||
| 19 | |||
| 20 | config(['app.debug' => true]); |
||
| 21 | } |
||
| 22 | |||
| 23 | 15 | public function register(): void |
|
| 26 | } |
||
| 27 |