| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class StorePermissionRequest extends FormRequest |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Determine if the user is authorized to make this request. |
||
| 11 | * |
||
| 12 | * @return bool |
||
| 13 | */ |
||
| 14 | public function authorize() |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the validation rules that apply to the request. |
||
| 28 | * |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | public function rules() |
||
| 38 | ]; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Return the fields and values to create a new role. |
||
| 43 | * |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | public function permissionFillData() |
||
| 56 |