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 | | Other Methods |
||
37 | | ----------------------------------------------------------------- |
||
38 | */ |
||
39 | /** |
||
40 | * Sanitize the inputs. |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | protected function sanitize() |
||
52 | |||
53 | /** |
||
54 | * Get the slug rule. |
||
55 | * |
||
56 | * @param string $column |
||
57 | * |
||
58 | * @return \Illuminate\Validation\Rules\Unique |
||
59 | */ |
||
60 | protected function getSlugRule($column = 'slug') |
||
64 | |||
65 | /** |
||
66 | * Get the roles table name. |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | protected function getRolesTable() |
||
74 | } |
||
75 |