| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 14 | public function register() |
|
| 33 | { |
||
| 34 | // Register the config file |
||
| 35 | 14 | $this->mergeConfigFrom(__DIR__.'/../config/lockout.php', 'lockout'); |
|
| 36 | |||
| 37 | // Publish the middleware globally |
||
| 38 | 14 | $this->app |
|
| 39 | 14 | ->make(Kernel::class) |
|
| 40 | 14 | ->pushMiddleware(CheckForReadOnlyMode::class); |
|
| 41 | 14 | } |
|
| 42 | |||
| 54 |