1 | <?php namespace Arcanesoft\Auth\Http\Requests\Admin\Roles; |
||
14 | abstract class RoleFormRequest extends FormRequest |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Main Methods |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | /** |
||
21 | * Get the validation rules that apply to the request. |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function rules() |
||
34 | |||
35 | /** |
||
36 | * Get custom attributes for validator errors. |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | public function attributes() |
||
46 | /* ----------------------------------------------------------------- |
||
47 | | Other Methods |
||
48 | | ----------------------------------------------------------------- |
||
49 | */ |
||
50 | /** |
||
51 | * Sanitize the inputs. |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | protected function sanitize() |
||
63 | |||
64 | /** |
||
65 | * Get the slug rule. |
||
66 | * |
||
67 | * @param string $column |
||
68 | * |
||
69 | * @return \Illuminate\Validation\Rules\Unique |
||
70 | */ |
||
71 | protected function getSlugRule($column = 'slug') |
||
75 | |||
76 | /** |
||
77 | * Get the roles table name. |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | protected function getRolesTable() |
||
85 | } |
||
86 |