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|unique:'.config('roles.rolesTable').',name,'.$this->id.',id', |
||
35 | 'slug' => 'required|unique:'.config('roles.rolesTable').',slug,'.$this->id.',id', |
||
36 | 'description' => 'nullable|string|max:255', |
||
37 | 'level' => 'required|integer', |
||
38 | ]; |
||
56 |