File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ class Login extends Component
20
20
//This mounts the default credentials for the admin. Remove this section if you want to make it public.
21
21
public function mount ()
22
22
{
23
+ if (auth ()->user ()) {
24
+ return redirect ()->intended ('/dashboard ' );
25
+ }
23
26
$ this ->fill ([
24
27
'email ' => 'admin@volt.com ' ,
25
28
'password ' => 'secret ' ,
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ class Register extends Component
14
14
public $ password = '' ;
15
15
public $ passwordConfirmation = '' ;
16
16
17
+ public function mount ()
18
+ {
19
+ if (auth ()->user ()) {
20
+ return redirect ()->intended ('/dashboard ' );
21
+ }
22
+ }
23
+
17
24
public function updatedEmail ()
18
25
{
19
26
$ this ->validate (['email ' =>'required|email:rfc,dns|unique:users ' ]);
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ class ForgotPassword extends Component
22
22
protected $ messages = [
23
23
'email.exists ' => 'The Email Address must be in our database. ' ,
24
24
];
25
+
26
+ public function mount ()
27
+ {
28
+ if (auth ()->user ()) {
29
+ return redirect ()->intended ('/dashboard ' );
30
+ }
31
+ }
32
+
25
33
public function updatedEmail ()
26
34
{
27
35
$ this ->validate (['email ' =>'required|email|exists:users ' ]);
Original file line number Diff line number Diff line change 54
54
<span class =" nav-link collapsed d-flex justify-content-between align-items-center" data-bs-toggle =" collapse"
55
55
data-bs-target =" #submenu-laravel" aria-expanded =" true" >
56
56
<span >
57
- <span class =" sidebar-icon" ><i class =" fab fa-laravel" style =" color : #f0bc74 ;" ></i ></span >
57
+ <span class =" sidebar-icon" ><i class =" fab fa-laravel me-2 " style =" color : #f0bc74 ;" ></i ></span >
58
58
<span class =" sidebar-text" style =" color : #f0bc74 ;" >Laravel Examples</span >
59
59
</span >
60
60
<span class =" link-arrow" ><svg class =" icon icon-sm" fill =" currentColor" viewBox =" 0 0 20 20"
You can’t perform that action at this time.
0 commit comments