1 | <?php namespace Arcanesoft\Blog\Http\Requests\Admin\Posts; |
||
15 | abstract class PostRequest extends FormRequest |
||
16 | { |
||
17 | /* ------------------------------------------------------------------------------------------------ |
||
18 | | Main Functions |
||
19 | | ------------------------------------------------------------------------------------------------ |
||
20 | */ |
||
21 | /** |
||
22 | * Get the validation rules that apply to the request. |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function rules() |
||
38 | |||
39 | /* ------------------------------------------------------------------------------------------------ |
||
40 | | Other Functions |
||
41 | | ------------------------------------------------------------------------------------------------ |
||
42 | */ |
||
43 | /** |
||
44 | * Get the slug rule. |
||
45 | * |
||
46 | * @return \Illuminate\Validation\Rules\Unique |
||
47 | */ |
||
48 | protected static function getSlugRule($column = 'slug') |
||
54 | |||
55 | /** |
||
56 | * Get the category rule. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | protected static function getCategoryRule() |
||
64 | |||
65 | /** |
||
66 | * Get the tags rule. |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | protected static function getTagsRule() |
||
74 | |||
75 | /** |
||
76 | * Get the post status rule. |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | protected static function getPostStatusRule() |
||
84 | } |
||
85 |