@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | public static function fromRequest() |
| 22 | 22 | { |
| 23 | - if(Str::startsWith(request()->path(), 'admin/')) return new static(false); |
|
| 23 | + if (Str::startsWith(request()->path(), 'admin/')) return new static(false); |
|
| 24 | 24 | |
| 25 | 25 | $active = (session()->get('preview-mode', static::DEFAULT) === true && auth()->guard('chief')->check()); |
| 26 | 26 | |
@@ -20,7 +20,9 @@ |
||
| 20 | 20 | |
| 21 | 21 | public static function fromRequest() |
| 22 | 22 | { |
| 23 | - if(Str::startsWith(request()->path(), 'admin/')) return new static(false); |
|
| 23 | + if(Str::startsWith(request()->path(), 'admin/')) { |
|
| 24 | + return new static(false); |
|
| 25 | + } |
|
| 24 | 26 | |
| 25 | 27 | $active = (session()->get('preview-mode', static::DEFAULT) === true && auth()->guard('chief')->check()); |
| 26 | 28 | |