| 1 | <?php namespace Arcanesoft\Seo\Http\Requests\Admin\Redirects; |
||
| 14 | abstract class RedirectFormRequest extends FormRequest |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Other Methods |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get only the validated data. |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function getValidatedData() |
||
| 27 | { |
||
| 28 | return $this->only(['old_url', 'new_url', 'status']); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the `old_url` unique rule. |
||
| 33 | * |
||
| 34 | * @param string $column |
||
| 35 | * |
||
| 36 | * @return \Illuminate\Validation\Rules\Unique |
||
| 37 | */ |
||
| 38 | public function getOldUrlRule($column = 'old_url') |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get `status` rule. |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | protected function getStatusRule() |
||
| 54 | } |
||
| 55 |