1 | <?php namespace Arcanesoft\Seo\Http\Requests\Admin\Footers; |
||
12 | abstract class FooterFormRequest extends FormRequest |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Other Methods |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Get the validated inputs. |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | public function getValidatedData() |
||
25 | { |
||
26 | return $this->only([ |
||
27 | // Footer inputs |
||
28 | 'name', 'localization', 'uri', 'locale', 'page', |
||
29 | // SEO Metas inputs |
||
30 | 'seo_title', 'seo_description', 'seo_keywords', |
||
31 | ]); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Get the page validation rule. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | protected function getPageRule() |
||
48 | |||
49 | /** |
||
50 | * Get unique URI Rule. |
||
51 | * |
||
52 | * @return \Illuminate\Validation\Rules\Unique |
||
53 | */ |
||
54 | protected function getUniqueUriRule() |
||
58 | } |
||
59 |