| 1 | <?php |
||
| 7 | trait HandlesRedirects |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The redirector instance. |
||
| 11 | * |
||
| 12 | * @var \Illuminate\Routing\Redirector |
||
| 13 | */ |
||
| 14 | protected $redirector; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The URI to redirect to if validation fails. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $redirect; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The route to redirect to if validation fails. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $redirectRoute; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The controller action to redirect to if validation fails. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $redirectAction; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the URL to redirect to on a validation error. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | protected function getRedirectUrl() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Set the Redirector instance. |
||
| 59 | * |
||
| 60 | * @param \Illuminate\Routing\Redirector $redirector |
||
| 61 | * |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | public function setRedirector(Redirector $redirector) |
||
| 70 | } |
||
| 71 |