| @@ 32-41 (lines=10) @@ | ||
| 29 | * |
|
| 30 | * @return void |
|
| 31 | */ |
|
| 32 | public function __construct() |
|
| 33 | { |
|
| 34 | $guard = config('backpack.base.guard', config('auth.defaults.guard')); |
|
| 35 | ||
| 36 | $this->middleware("guest:$guard"); |
|
| 37 | ||
| 38 | // Where to redirect users after login / registration. |
|
| 39 | $this->redirectTo = property_exists($this, 'redirectTo') ? $this->redirectTo |
|
| 40 | : config('backpack.base.route_prefix', 'dashboard'); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * Get a validator for an incoming registration request. |
|
| @@ 33-41 (lines=9) @@ | ||
| 30 | * |
|
| 31 | * @return void |
|
| 32 | */ |
|
| 33 | public function __construct() |
|
| 34 | { |
|
| 35 | $guard = config('backpack.base.guard', config('auth.defaults.guard')); |
|
| 36 | ||
| 37 | $this->middleware("guest:$guard"); |
|
| 38 | ||
| 39 | // where to redirect after password was reset |
|
| 40 | $this->redirectTo = property_exists($this, 'redirectTo') ? $this->redirectTo : config('backpack.base.route_prefix', 'admin').'/dashboard'; |
|
| 41 | } |
|
| 42 | ||
| 43 | // ------------------------------------------------------- |
|
| 44 | // Laravel overwrites for loading backpack views |
|