| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | public static function register($action, $model, $type, $permission = null) |
||
| 14 | { |
||
| 15 | if (config('lighthouse-utils.authorization')) { |
||
| 16 | return static::create([ |
||
| 17 | 'name' => $action, |
||
| 18 | 'type' => $type, |
||
| 19 | 'model' => $model, |
||
| 20 | 'permission' => $permission, |
||
| 21 | ]); |
||
| 22 | } |
||
| 23 | |||
| 24 | return null; |
||
| 25 | } |
||
| 27 |