Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function rules() |
||
32 | { |
||
33 | return [ |
||
34 | 'name' => 'required|max:60|unique:'.config('roles.permissionsTable').',name,'.$this->id.',id', |
||
35 | 'slug' => 'required|max:60|unique:'.config('roles.permissionsTable').',slug,'.$this->id.',id', |
||
36 | 'description' => 'nullable|string|max:255', |
||
37 | 'model' => 'required|string|max:60', |
||
38 | ]; |
||
56 |