Skip to content

Commit e0c1847

Browse files
cleanup
1 parent e8e43d9 commit e0c1847

File tree

12 files changed

+69
-32
lines changed

12 files changed

+69
-32
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
IS_DEMO=false
2+
13
APP_NAME=Laravel
24
APP_ENV=local
35
APP_KEY=
@@ -45,5 +47,3 @@ PUSHER_APP_CLUSTER=mt1
4547

4648
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
4749
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
48-
49-
IS_DEMO=false

app/Http/Livewire/Auth/Login.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ class Login extends Component
1515
'password' => 'required',
1616
];
1717

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+
1827
public function login()
1928
{
2029
$credentials = $this->validate();

database/seeders/DatabaseSeeder.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class DatabaseSeeder extends Seeder
1313
*/
1414
public function run()
1515
{
16-
\App\Models\User::factory(10)->create();
16+
// \App\Models\User::factory(10)->create();
17+
$this->call([
18+
UserSeeder::class
19+
]);
1720
}
1821
}

database/seeders/UserSeeder.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
}

resources/views/layouts/topbar.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
<div class="input-group input-group-merge search-bar">
88
<span class="input-group-text" id="topbar-addon"><span class="fas fa-search"></span></span>
99
<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>
1213
</div>
1314
<!-- Navbar links -->
1415
<ul class="navbar-nav align-items-center">

resources/views/livewire/auth/login.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Section -->
44
<section class="d-flex align-items-center my-5 mt-lg-6 mb-lg-5">
55
<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> --}}
77
<div wire:ignore.self class="row justify-content-center form-bg-image" data-background-lg="/assets/img/illustrations/signin.svg">
88
<div class="col-12 d-flex align-items-center justify-content-center">
99
<div class="bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500">

resources/views/livewire/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Section -->
44
<section class="d-flex align-items-center my-5 mt-lg-6 mb-lg-5">
55
<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> --}}
77
<div wire:ignore.self class="row justify-content-center form-bg-image" data-background-lg="/assets/img/illustrations/signin.svg">
88
<div class="col-12 d-flex align-items-center justify-content-center">
99
<div class="mb-4 mb-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500">

resources/views/livewire/forgot-password.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
</div>
2121
<!-- End of Form -->
2222
@if($mailSentAlert)
23-
<div class="alert alert-info" role="alert">
23+
<div class="alert alert-success" role="alert">
2424
An email containing the password reset link has been sent.
2525
</div>
2626
@endif
2727
@if($showDemoNotification)
28-
<div class="alert alert-info" role="alert">
28+
<div class="alert alert-danger" role="alert">
2929
You cannot do that in the demo version.
3030
</div>
3131
@endif

resources/views/livewire/profile.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
</div>
3131
<div class="row">
3232
<div class="col-12 col-xl-8">
33+
@if($showSavedAlert)
34+
<div class="alert alert-success" role="alert">
35+
Saved!
36+
</div>
37+
@endif
3338
<div class="card card-body shadow-sm mb-4">
3439
<h2 class="h5 mb-4">General information</h2>
3540
<form wire:submit.prevent="save" action="#" method="POST">
@@ -112,12 +117,7 @@
112117
<div class="mt-3">
113118
<button type="submit" class="btn btn-dark">Save All</button>
114119
</div>
115-
</form>
116-
@if($showSavedAlert)
117-
<div class="alert alert-primary mt-2" role="alert">
118-
Saved!
119-
</div>
120-
@endif
120+
</form>
121121
@if($showDemoNotification)
122122
<div class="alert alert-info mt-2" role="alert">
123123
You cannot do that in the demo version.

resources/views/reset-password-example.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="col-12 d-flex align-items-center justify-content-center">
88
<div class="bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500">
99
<h1 class="h3 mb-4">Reset password</h1>
10-
<form action="#" method="POST">
10+
<form action="#">
1111
{{-- <input wire:model="token" type="hidden" name="token" value="..."> --}}
1212
<!-- Form -->
1313
<div class="mb-4">

0 commit comments

Comments
 (0)