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