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