File tree Expand file tree Collapse file tree 12 files changed +69
-32
lines changed Expand file tree Collapse file tree 12 files changed +69
-32
lines changed Original file line number Diff line number Diff line change
1
+ IS_DEMO = false
2
+
1
3
APP_NAME = Laravel
2
4
APP_ENV = local
3
5
APP_KEY =
@@ -45,5 +47,3 @@ PUSHER_APP_CLUSTER=mt1
45
47
46
48
MIX_PUSHER_APP_KEY = " ${ PUSHER_APP_KEY } "
47
49
MIX_PUSHER_APP_CLUSTER = " ${ PUSHER_APP_CLUSTER } "
48
-
49
- IS_DEMO = false
Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ class Login extends Component
15
15
'password ' => 'required ' ,
16
16
];
17
17
18
+ //This mounts the default credentials for the admin. Remove this section if you want to make it public.
19
+ public function mount ()
20
+ {
21
+ $ this ->fill ([
22
+ 'email ' => 'admin@volt.com ' ,
23
+ 'password ' => 'secret ' ,
24
+ ]);
25
+ }
26
+
18
27
public function login ()
19
28
{
20
29
$ credentials = $ this ->validate ();
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ class DatabaseSeeder extends Seeder
13
13
*/
14
14
public function run ()
15
15
{
16
- \App \Models \User::factory (10 )->create ();
16
+ // \App\Models\User::factory(10)->create();
17
+ $ this ->call ([
18
+ UserSeeder::class
19
+ ]);
17
20
}
18
21
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Database \Seeders ;
4
+
5
+ use Illuminate \Database \Seeder ;
6
+ use Illuminate \Support \Facades \DB ;
7
+ use Illuminate \Support \Facades \Hash ;
8
+
9
+ class UserSeeder extends Seeder
10
+ {
11
+ /**
12
+ * Run the database seeds.
13
+ *
14
+ * @return void
15
+ */
16
+ public function run ()
17
+ {
18
+ DB ::table ("users " )->insert ([
19
+ 'email ' => 'admin@volt.com ' ,
20
+ 'password ' => Hash::make ('secret ' ),
21
+ ]);
22
+ }
23
+ }
Original file line number Diff line number Diff line change 7
7
<div class =" input-group input-group-merge search-bar" >
8
8
<span class =" input-group-text" id =" topbar-addon" ><span class =" fas fa-search" ></span ></span >
9
9
<input type =" text" class =" form-control" id =" topbarInputIconLeft" placeholder =" Search" aria-label =" Search" aria-describedby =" topbar-addon" >
10
- </div >
11
- </form >
10
+ </div >
11
+ </form >
12
+ <a href =" #" ><button class =" btn mx-1 me-2 btn-secondary" type =" button" ><i class =" fas fa-arrow-down mx-1" ></i >Download</button ></a >
12
13
</div >
13
14
<!-- Navbar links -->
14
15
<ul class =" navbar-nav align-items-center" >
Original file line number Diff line number Diff line change 3
3
<!-- Section -->
4
4
<section class =" d-flex align-items-center my-5 mt-lg-6 mb-lg-5" >
5
5
<div class =" container" >
6
- <p class =" text-center" ><a href =" {{ route (' dashboard' ) } }" class =" text-gray-700" ><i class =" fas fa-angle-left me-2" ></i > Back to homepage</a ></p >
6
+ {{-- <p class="text-center"><a href="{{ route('dashboard') }}" class="text-gray-700"><i class="fas fa-angle-left me-2"></i> Back to homepage</a></p> --}}
7
7
<div wire:ignore.self class =" row justify-content-center form-bg-image" data-background-lg =" /assets/img/illustrations/signin.svg" >
8
8
<div class =" col-12 d-flex align-items-center justify-content-center" >
9
9
<div class =" bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500" >
Original file line number Diff line number Diff line change 3
3
<!-- Section -->
4
4
<section class =" d-flex align-items-center my-5 mt-lg-6 mb-lg-5" >
5
5
<div class =" container" >
6
- <p class =" text-center" ><a href =" {{ route (' dashboard' ) } }" class =" text-gray-700" ><i class =" fas fa-angle-left me-2" ></i > Back to homepage</a ></p >
6
+ {{-- <p class="text-center"><a href="{{ route('dashboard') }}" class="text-gray-700"><i class="fas fa-angle-left me-2"></i> Back to homepage</a></p> --}}
7
7
<div wire:ignore.self class =" row justify-content-center form-bg-image" data-background-lg =" /assets/img/illustrations/signin.svg" >
8
8
<div class =" col-12 d-flex align-items-center justify-content-center" >
9
9
<div class =" mb-4 mb-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500" >
Original file line number Diff line number Diff line change 20
20
</div >
21
21
<!-- End of Form -->
22
22
@if ($mailSentAlert )
23
- <div class =" alert alert-info " role =" alert" >
23
+ <div class =" alert alert-success " role =" alert" >
24
24
An email containing the password reset link has been sent.
25
25
</div >
26
26
@endif
27
27
@if ($showDemoNotification )
28
- <div class =" alert alert-info " role =" alert" >
28
+ <div class =" alert alert-danger " role =" alert" >
29
29
You cannot do that in the demo version.
30
30
</div >
31
31
@endif
Original file line number Diff line number Diff line change 30
30
</div >
31
31
<div class =" row" >
32
32
<div class =" col-12 col-xl-8" >
33
+ @if ($showSavedAlert )
34
+ <div class =" alert alert-success" role =" alert" >
35
+ Saved!
36
+ </div >
37
+ @endif
33
38
<div class =" card card-body shadow-sm mb-4" >
34
39
<h2 class =" h5 mb-4" >General information</h2 >
35
40
<form wire:submit.prevent =" save" action =" #" method =" POST" >
112
117
<div class =" mt-3" >
113
118
<button type =" submit" class =" btn btn-dark" >Save All</button >
114
119
</div >
115
- </form >
116
- @if ($showSavedAlert )
117
- <div class =" alert alert-primary mt-2" role =" alert" >
118
- Saved!
119
- </div >
120
- @endif
120
+ </form >
121
121
@if ($showDemoNotification )
122
122
<div class =" alert alert-info mt-2" role =" alert" >
123
123
You cannot do that in the demo version.
Original file line number Diff line number Diff line change 7
7
<div class =" col-12 d-flex align-items-center justify-content-center" >
8
8
<div class =" bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500" >
9
9
<h1 class =" h3 mb-4" >Reset password</h1 >
10
- <form action =" #" method = " POST " >
10
+ <form action =" #" >
11
11
{{-- <input wire:model="token" type="hidden" name="token" value="..."> --}}
12
12
<!-- Form -->
13
13
<div class =" mb-4" >
You can’t perform that action at this time.
0 commit comments