| Conditions | 3 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function boot() |
||
| 31 | { |
||
| 32 | Schema::defaultStringLength(191); |
||
| 33 | |||
| 34 | //Observers |
||
| 35 | Script::observe(ScriptObserver::class); |
||
| 36 | Setting::observe(SettingObserver::class); |
||
| 37 | |||
| 38 | Gate::define('admin-only', function ($user) { |
||
| 39 | if ($user->isAdmin() || $user->isModerator()) { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | |||
| 43 | return false; |
||
| 44 | }); |
||
| 47 |