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 | protected function prepareForValidation() |
||
59 | |||
60 | /** |
||
61 | * Get the validated inputs. |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | public function getValidatedData() |
||
78 | |||
79 | /** |
||
80 | * Get the slug rule. |
||
81 | * |
||
82 | * @param string $column |
||
83 | * |
||
84 | * @return \Illuminate\Validation\Rules\Unique |
||
85 | */ |
||
86 | protected static function getSlugRule($column = 'slug') |
||
92 | |||
93 | /** |
||
94 | * Get the category rule. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | protected static function getCategoryRule() |
||
102 | |||
103 | /** |
||
104 | * Get the tags rule. |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | protected static function getTagsRule() |
||
112 | |||
113 | /** |
||
114 | * Get the post status rule. |
||
115 | * |
||
116 | * @return array |
||
117 | */ |
||
118 | protected static function getPostStatusRule() |
||
122 | |||
123 | /** |
||
124 | * Get the post local rule. |
||
125 | * |
||
126 | * @return array |
||
127 | */ |
||
128 | protected function getLocaleRule() |
||
132 | } |
||
133 |