1 | <?php namespace Arcanesoft\Blog\Http\Requests\Admin\Posts; |
||
15 | abstract class PostRequest extends FormRequest |
||
16 | { |
||
17 | /* ----------------------------------------------------------------- |
||
18 | | Main Methods |
||
19 | | ----------------------------------------------------------------- |
||
20 | */ |
||
21 | |||
22 | /** |
||
23 | * Get the validation rules that apply to the request. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | public function rules() |
||
42 | |||
43 | /* ----------------------------------------------------------------- |
||
44 | | Other Methods |
||
45 | | ----------------------------------------------------------------- |
||
46 | */ |
||
47 | |||
48 | /** |
||
49 | * Get the validated inputs. |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getValidatedData() |
||
66 | |||
67 | /** |
||
68 | * Get the slug rule. |
||
69 | * |
||
70 | * @param string $column |
||
71 | * |
||
72 | * @return \Illuminate\Validation\Rules\Unique |
||
73 | */ |
||
74 | protected static function getSlugRule($column = 'slug') |
||
80 | |||
81 | /** |
||
82 | * Get the category rule. |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | protected static function getCategoryRule() |
||
90 | |||
91 | /** |
||
92 | * Get the tags rule. |
||
93 | * |
||
94 | * @return array |
||
95 | */ |
||
96 | protected static function getTagsRule() |
||
100 | |||
101 | /** |
||
102 | * Get the post status rule. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | protected static function getPostStatusRule() |
||
110 | |||
111 | /** |
||
112 | * Get the post local rule. |
||
113 | * |
||
114 | * @return array |
||
115 | */ |
||
116 | protected function getLocaleRule() |
||
120 | } |
||
121 |