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 | * Prepare the data for validation. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | protected function prepareForValidation() |
||
61 | |||
62 | /** |
||
63 | * Get the validated inputs. |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getValidatedData() |
||
80 | |||
81 | /** |
||
82 | * Get the slug rule. |
||
83 | * |
||
84 | * @param string $column |
||
85 | * |
||
86 | * @return \Illuminate\Validation\Rules\Unique |
||
87 | */ |
||
88 | protected static function getSlugRule($column = 'slug') |
||
94 | |||
95 | /** |
||
96 | * Get the category rule. |
||
97 | * |
||
98 | * @return array |
||
99 | */ |
||
100 | protected static function getCategoryRule() |
||
104 | |||
105 | /** |
||
106 | * Get the tags rule. |
||
107 | * |
||
108 | * @return array |
||
109 | */ |
||
110 | protected static function getTagsRule() |
||
114 | |||
115 | /** |
||
116 | * Get the post status rule. |
||
117 | * |
||
118 | * @return array |
||
119 | */ |
||
120 | protected static function getPostStatusRule() |
||
124 | |||
125 | /** |
||
126 | * Get the post local rule. |
||
127 | * |
||
128 | * @return array |
||
129 | */ |
||
130 | protected function getLocaleRule() |
||
134 | } |
||
135 |