├── public ├── favicon.ico ├── robots.txt ├── index.php └── .htaccess ├── resources ├── js │ └── app.js ├── views │ ├── components │ │ ├── layouts │ │ │ ├── auth.blade.php │ │ │ ├── app.blade.php │ │ │ ├── auth │ │ │ │ ├── simple.blade.php │ │ │ │ ├── card.blade.php │ │ │ │ └── split.blade.php │ │ │ └── app │ │ │ │ ├── header.blade.php │ │ │ │ └── sidebar.blade.php │ │ ├── auth-session-status.blade.php │ │ ├── auth-header.blade.php │ │ ├── app-logo.blade.php │ │ ├── placeholder-pattern.blade.php │ │ ├── action-message.blade.php │ │ ├── app-logo-icon.blade.php │ │ └── settings │ │ │ └── layout.blade.php │ ├── partials │ │ ├── settings-heading.blade.php │ │ └── head.blade.php │ ├── livewire │ │ ├── settings │ │ │ ├── appearance.blade.php │ │ │ ├── password.blade.php │ │ │ ├── delete-user-form.blade.php │ │ │ └── profile.blade.php │ │ └── auth │ │ │ ├── confirm-password.blade.php │ │ │ ├── verify-email.blade.php │ │ │ ├── forgot-password.blade.php │ │ │ ├── reset-password.blade.php │ │ │ ├── login.blade.php │ │ │ └── register.blade.php │ ├── tooltip.blade.php │ ├── layouts │ │ └── app.blade.php │ ├── datepicker.blade.php │ ├── flux │ │ ├── icon │ │ │ ├── chevrons-up-down.blade.php │ │ │ ├── layout-grid.blade.php │ │ │ ├── folder-git-2.blade.php │ │ │ └── book-open-text.blade.php │ │ └── navlist │ │ │ └── group.blade.php │ ├── popover.blade.php │ ├── dashboard.blade.php │ ├── dropdown.blade.php │ ├── input-counter.blade.php │ ├── collapse.blade.php │ ├── drawer.blade.php │ ├── tabs.blade.php │ ├── modal.blade.php │ ├── carousel.blade.php │ ├── welcome.blade.php │ ├── accordion.blade.php │ ├── dial.blade.php │ └── dismiss.blade.php └── css │ └── app.css ├── database ├── .gitignore ├── seeders │ └── DatabaseSeeder.php ├── migrations │ ├── 0001_01_01_000001_create_cache_table.php │ ├── 0001_01_01_000000_create_users_table.php │ └── 0001_01_01_000002_create_jobs_table.php └── factories │ └── UserFactory.php ├── bootstrap ├── cache │ └── .gitignore ├── providers.php └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── private │ │ └── .gitignore │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── app ├── Http │ └── Controllers │ │ ├── Controller.php │ │ └── Auth │ │ └── VerifyEmailController.php ├── Livewire │ ├── Settings │ │ ├── Appearance.php │ │ ├── DeleteUserForm.php │ │ ├── Password.php │ │ └── Profile.php │ ├── Actions │ │ └── Logout.php │ └── Auth │ │ ├── ForgotPassword.php │ │ ├── VerifyEmail.php │ │ ├── ConfirmPassword.php │ │ ├── Register.php │ │ ├── Login.php │ │ └── ResetPassword.php ├── Providers │ └── AppServiceProvider.php └── Models │ └── User.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ ├── ExampleTest.php │ ├── DashboardTest.php │ ├── Auth │ │ ├── RegistrationTest.php │ │ ├── PasswordConfirmationTest.php │ │ ├── AuthenticationTest.php │ │ ├── EmailVerificationTest.php │ │ └── PasswordResetTest.php │ └── Settings │ │ ├── PasswordUpdateTest.php │ │ └── ProfileUpdateTest.php └── Pest.php ├── .gitattributes ├── routes ├── console.php ├── auth.php └── web.php ├── .editorconfig ├── .gitignore ├── vite.config.js ├── artisan ├── LICENSE ├── package.json ├── config ├── services.php ├── filesystems.php ├── cache.php ├── mail.php ├── queue.php ├── auth.php ├── app.php ├── logging.php ├── database.php └── session.php ├── workflows ├── lint.yml └── tests.yml ├── phpunit.xml ├── .env.example └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/private/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !private/ 3 | !public/ 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /bootstrap/providers.php: -------------------------------------------------------------------------------- 1 | 2 | {{ $slot }} 3 | 4 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ $slot }} 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/Livewire/Settings/Appearance.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 8 | })->purpose('Display an inspiring quote'); 9 | -------------------------------------------------------------------------------- /resources/views/components/auth-session-status.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'status', 3 | ]) 4 | 5 | @if ($status) 6 |
merge(['class' => 'font-medium text-sm text-green-600']) }}> 7 | {{ $status }} 8 |
9 | @endif 10 | -------------------------------------------------------------------------------- /resources/views/components/auth-header.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'title', 3 | 'description', 4 | ]) 5 | 6 |
7 | {{ $title }} 8 | {{ $description }} 9 |
10 | -------------------------------------------------------------------------------- /resources/views/partials/settings-heading.blade.php: -------------------------------------------------------------------------------- 1 |
2 | {{ __('Settings') }} 3 | {{ __('Manage your profile and account settings') }} 4 | 5 |
6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /storage/pail 8 | /vendor 9 | .env 10 | .env.backup 11 | .env.production 12 | .phpactor.json 13 | .phpunit.result.cache 14 | Homestead.json 15 | Homestead.yaml 16 | npm-debug.log 17 | yarn-error.log 18 | /auth.json 19 | /.fleet 20 | /.idea 21 | /.nova 22 | /.vscode 23 | /.zed 24 | -------------------------------------------------------------------------------- /resources/views/components/app-logo.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 |
5 | Laravel Starter Kit 6 |
7 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 15 | 16 | $response->assertStatus(200); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /resources/views/partials/head.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ $title ?? 'Laravel' }} 5 | 6 | 7 | 8 | 9 | @vite(['resources/css/app.css', 'resources/js/app.js']) 10 | @fluxAppearance 11 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { 2 | defineConfig 3 | } from 'vite'; 4 | import laravel from 'laravel-vite-plugin'; 5 | import tailwindcss from "@tailwindcss/vite"; 6 | 7 | export default defineConfig({ 8 | plugins: [ 9 | laravel({ 10 | input: ['resources/css/app.css', 'resources/js/app.js'], 11 | refresh: [`resources/views/**/*`], 12 | }), 13 | tailwindcss(), 14 | ], 15 | server: { 16 | cors: true, 17 | }, 18 | }); -------------------------------------------------------------------------------- /resources/views/components/placeholder-pattern.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'id' => uniqid(), 3 | ]) 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | handleCommand(new ArgvInput); 17 | 18 | exit($status); 19 | -------------------------------------------------------------------------------- /app/Livewire/Actions/Logout.php: -------------------------------------------------------------------------------- 1 | logout(); 16 | 17 | Session::invalidate(); 18 | Session::regenerateToken(); 19 | 20 | return redirect('/'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /resources/views/components/action-message.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'on', 3 | ]) 4 | 5 |
merge(['class' => 'text-sm']) }} 12 | > 13 | {{ $slot->isEmpty() ? __('Saved.') : $slot }} 14 |
15 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | 18 | User::factory()->create([ 19 | 'name' => 'Test User', 20 | 'email' => 'test@example.com', 21 | ]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | withRouting( 9 | web: __DIR__.'/../routes/web.php', 10 | commands: __DIR__.'/../routes/console.php', 11 | health: '/up', 12 | ) 13 | ->withMiddleware(function (Middleware $middleware) { 14 | // 15 | }) 16 | ->withExceptions(function (Exceptions $exceptions) { 17 | // 18 | })->create(); 19 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | handleRequest(Request::capture()); 21 | -------------------------------------------------------------------------------- /tests/Feature/DashboardTest.php: -------------------------------------------------------------------------------- 1 | get('/dashboard')->assertRedirect('/login'); 16 | } 17 | 18 | public function test_authenticated_users_can_visit_the_dashboard(): void 19 | { 20 | $this->actingAs($user = User::factory()->create()); 21 | 22 | $this->get('/dashboard')->assertStatus(200); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /resources/views/livewire/settings/appearance.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @include('partials.settings-heading') 3 | 4 | 5 | 6 | {{ __('Light') }} 7 | {{ __('Dark') }} 8 | {{ __('System') }} 9 | 10 | 11 |
12 | -------------------------------------------------------------------------------- /app/Livewire/Settings/DeleteUserForm.php: -------------------------------------------------------------------------------- 1 | validate([ 19 | 'password' => ['required', 'string', 'current_password'], 20 | ]); 21 | 22 | tap(Auth::user(), $logout(...))->delete(); 23 | 24 | $this->redirect('/', navigate: true); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/components/app-logo-icon.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | -------------------------------------------------------------------------------- /app/Livewire/Auth/ForgotPassword.php: -------------------------------------------------------------------------------- 1 | validate([ 20 | 'email' => ['required', 'string', 'email'], 21 | ]); 22 | 23 | Password::sendResetLink($this->only('email')); 24 | 25 | session()->flash('status', __('A reset link will be sent if the account exists.')); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Handle X-XSRF-Token Header 13 | RewriteCond %{HTTP:x-xsrf-token} . 14 | RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}] 15 | 16 | # Redirect Trailing Slashes If Not A Folder... 17 | RewriteCond %{REQUEST_FILENAME} !-d 18 | RewriteCond %{REQUEST_URI} (.+)/$ 19 | RewriteRule ^ %1 [L,R=301] 20 | 21 | # Send Requests To Front Controller... 22 | RewriteCond %{REQUEST_FILENAME} !-d 23 | RewriteCond %{REQUEST_FILENAME} !-f 24 | RewriteRule ^ index.php [L] 25 | 26 | -------------------------------------------------------------------------------- /resources/views/tooltip.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 | 7 | 8 | 12 | 13 |
14 | @endsection 15 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ config('app.name', 'Flowbite and Laravel Starter') }} 9 | 10 | 11 | 12 | 13 | 14 | 15 | @vite(['resources/css/app.css', 'resources/js/app.js']) 16 | 17 | 18 | @yield('content') 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /resources/views/livewire/auth/confirm-password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 20 | 21 | {{ __('Confirm') }} 22 | 23 |
24 | -------------------------------------------------------------------------------- /resources/views/components/settings/layout.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | {{ __('Profile') }} 5 | {{ __('Password') }} 6 | {{ __('Appearance') }} 7 | 8 |
9 | 10 | 11 | 12 |
13 | {{ $heading ?? '' }} 14 | {{ $subheading ?? '' }} 15 | 16 |
17 | {{ $slot }} 18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /resources/views/livewire/auth/verify-email.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | {{ __('Please verify your email address by clicking on the link we just emailed to you.') }} 4 | 5 | 6 | @if (session('status') == 'verification-link-sent') 7 | 8 | {{ __('A new verification link has been sent to the email address you provided during registration.') }} 9 | 10 | @endif 11 | 12 |
13 | 14 | {{ __('Resend verification email') }} 15 | 16 | 17 | 18 | {{ __('Log out') }} 19 | 20 |
21 |
22 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000001_create_cache_table.php: -------------------------------------------------------------------------------- 1 | string('key')->primary(); 16 | $table->mediumText('value'); 17 | $table->integer('expiration'); 18 | }); 19 | 20 | Schema::create('cache_locks', function (Blueprint $table) { 21 | $table->string('key')->primary(); 22 | $table->string('owner'); 23 | $table->integer('expiration'); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('cache'); 33 | Schema::dropIfExists('cache_locks'); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerifyEmailController.php: -------------------------------------------------------------------------------- 1 | user()->hasVerifiedEmail()) { 18 | return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); 19 | } 20 | 21 | if ($request->user()->markEmailAsVerified()) { 22 | /** @var \Illuminate\Contracts\Auth\MustVerifyEmail $user */ 23 | $user = $request->user(); 24 | 25 | event(new Verified($user)); 26 | } 27 | 28 | return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/views/livewire/auth/forgot-password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 17 | 18 | {{ __('Email password reset link') }} 19 | 20 | 21 |
22 | {{ __('Or, return to') }} 23 | {{ __('log in') }} 24 |
25 |
26 | -------------------------------------------------------------------------------- /tests/Feature/Auth/RegistrationTest.php: -------------------------------------------------------------------------------- 1 | get('/register'); 17 | 18 | $response->assertStatus(200); 19 | } 20 | 21 | public function test_new_users_can_register(): void 22 | { 23 | $response = Livewire::test(Register::class) 24 | ->set('name', 'Test User') 25 | ->set('email', 'test@example.com') 26 | ->set('password', 'password') 27 | ->set('password_confirmation', 'password') 28 | ->call('register'); 29 | 30 | $response 31 | ->assertHasNoErrors() 32 | ->assertRedirect(route('dashboard', absolute: false)); 33 | 34 | $this->assertAuthenticated(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Livewire/Auth/VerifyEmail.php: -------------------------------------------------------------------------------- 1 | hasVerifiedEmail()) { 20 | $this->redirectIntended(default: route('dashboard', absolute: false), navigate: true); 21 | 22 | return; 23 | } 24 | 25 | Auth::user()->sendEmailVerificationNotification(); 26 | 27 | Session::flash('status', 'verification-link-sent'); 28 | } 29 | 30 | /** 31 | * Log the current user out of the application. 32 | */ 33 | public function logout(Logout $logout): void 34 | { 35 | $logout(); 36 | 37 | $this->redirect('/', navigate: true); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Livewire/Auth/ConfirmPassword.php: -------------------------------------------------------------------------------- 1 | validate([ 21 | 'password' => ['required', 'string'], 22 | ]); 23 | 24 | if (! Auth::guard('web')->validate([ 25 | 'email' => Auth::user()->email, 26 | 'password' => $this->password, 27 | ])) { 28 | throw ValidationException::withMessages([ 29 | 'password' => __('auth.password'), 30 | ]); 31 | } 32 | 33 | session(['auth.password_confirmed_at' => time()]); 34 | 35 | $this->redirectIntended(default: route('dashboard', absolute: false), navigate: true); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /resources/views/datepicker.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 |
7 |
8 | 11 |
12 | 13 |
14 | 15 |
16 | @endsection 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Bergside 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /resources/views/components/layouts/auth/simple.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('partials.head') 5 | 6 | 7 |
8 |
9 | 10 | 11 | 12 | 13 | {{ config('app.name', 'Laravel') }} 14 | 15 |
16 | {{ $slot }} 17 |
18 |
19 |
20 | @fluxScripts 21 | 22 | 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tailwind-laravel-starter", 3 | "version": "1.0.0", 4 | "description": "A free and open-source starter project to help you get started with the core Flowbite Library components and Laravel", 5 | "license": "MIT", 6 | "repository": "https://github.com/themesberg/tailwind-laravel-starter", 7 | "homepage": "https://flowbite.com/docs/getting-started/laravel/", 8 | "contributors": [ 9 | "Zoltán Szőgyényi (https://x.com/zoltanszogyenyi)" 10 | ], 11 | "author": "Bergside Inc.", 12 | "type": "module", 13 | "scripts": { 14 | "build": "vite build", 15 | "dev": "vite" 16 | }, 17 | "dependencies": { 18 | "@tailwindcss/vite": "^4.0.7", 19 | "autoprefixer": "^10.4.20", 20 | "axios": "^1.7.4", 21 | "concurrently": "^9.0.1", 22 | "flowbite": "^3.1.2", 23 | "laravel-vite-plugin": "^1.0", 24 | "tailwindcss": "^4.0.7", 25 | "vite": "^6.0" 26 | }, 27 | "optionalDependencies": { 28 | "@rollup/rollup-linux-x64-gnu": "4.9.5", 29 | "@tailwindcss/oxide-linux-x64-gnu": "^4.0.1", 30 | "lightningcss-linux-x64-gnu": "^1.29.1" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'token' => env('POSTMARK_TOKEN'), 19 | ], 20 | 21 | 'ses' => [ 22 | 'key' => env('AWS_ACCESS_KEY_ID'), 23 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 24 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 25 | ], 26 | 27 | 'resend' => [ 28 | 'key' => env('RESEND_KEY'), 29 | ], 30 | 31 | 'slack' => [ 32 | 'notifications' => [ 33 | 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), 34 | 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), 35 | ], 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /resources/views/flux/icon/chevrons-up-down.blade.php: -------------------------------------------------------------------------------- 1 | {{-- Credit: Lucide (https://lucide.dev) --}} 2 | 3 | @props([ 4 | 'variant' => 'outline', 5 | ]) 6 | 7 | @php 8 | if ($variant === 'solid') { 9 | throw new \Exception('The "solid" variant is not supported in Lucide.'); 10 | } 11 | 12 | $classes = Flux::classes('shrink-0')->add( 13 | match ($variant) { 14 | 'outline' => '[:where(&)]:size-6', 15 | 'solid' => '[:where(&)]:size-6', 16 | 'mini' => '[:where(&)]:size-5', 17 | 'micro' => '[:where(&)]:size-4', 18 | }, 19 | ); 20 | 21 | $strokeWidth = match ($variant) { 22 | 'outline' => 2, 23 | 'mini' => 2.25, 24 | 'micro' => 2.5, 25 | }; 26 | @endphp 27 | 28 | class($classes) }} 30 | data-flux-icon 31 | xmlns="http://www.w3.org/2000/svg" 32 | viewBox="0 0 24 24" 33 | fill="none" 34 | stroke="currentColor" 35 | stroke-width="{{ $strokeWidth }}" 36 | stroke-linecap="round" 37 | stroke-linejoin="round" 38 | aria-hidden="true" 39 | data-slot="icon" 40 | > 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /workflows/lint.yml: -------------------------------------------------------------------------------- 1 | name: linter 2 | 3 | on: 4 | push: 5 | branches: 6 | - develop 7 | - main 8 | pull_request: 9 | branches: 10 | - develop 11 | - main 12 | 13 | permissions: 14 | contents: write 15 | 16 | jobs: 17 | quality: 18 | runs-on: ubuntu-latest 19 | environment: Testing 20 | steps: 21 | - uses: actions/checkout@v4 22 | 23 | - name: Setup PHP 24 | uses: shivammathur/setup-php@v2 25 | with: 26 | php-version: '8.4' 27 | 28 | - name: Add Flux Credentials Loaded From ENV 29 | run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}" 30 | 31 | - name: Install Dependencies 32 | run: | 33 | composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist 34 | npm install 35 | 36 | - name: Run Pint 37 | run: vendor/bin/pint 38 | 39 | # - name: Commit Changes 40 | # uses: stefanzweifel/git-auto-commit-action@v5 41 | # with: 42 | # commit_message: fix code style 43 | # commit_options: '--no-verify' 44 | # file_pattern: '!.github/workflows/* **/*' 45 | -------------------------------------------------------------------------------- /routes/auth.php: -------------------------------------------------------------------------------- 1 | group(function () { 13 | Route::get('login', Login::class)->name('login'); 14 | Route::get('register', Register::class)->name('register'); 15 | Route::get('forgot-password', ForgotPassword::class)->name('password.request'); 16 | Route::get('reset-password/{token}', ResetPassword::class)->name('password.reset'); 17 | }); 18 | 19 | Route::middleware('auth')->group(function () { 20 | Route::get('verify-email', VerifyEmail::class) 21 | ->name('verification.notice'); 22 | 23 | Route::get('verify-email/{id}/{hash}', VerifyEmailController::class) 24 | ->middleware(['signed', 'throttle:6,1']) 25 | ->name('verification.verify'); 26 | 27 | Route::get('confirm-password', ConfirmPassword::class) 28 | ->name('password.confirm'); 29 | }); 30 | 31 | Route::post('logout', App\Livewire\Actions\Logout::class) 32 | ->name('logout'); 33 | -------------------------------------------------------------------------------- /resources/views/popover.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 | 7 | 8 | 17 | 18 |
19 | @endsection 20 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class UserFactory extends Factory 13 | { 14 | /** 15 | * The current password being used by the factory. 16 | */ 17 | protected static ?string $password; 18 | 19 | /** 20 | * Define the model's default state. 21 | * 22 | * @return array 23 | */ 24 | public function definition(): array 25 | { 26 | return [ 27 | 'name' => fake()->name(), 28 | 'email' => fake()->unique()->safeEmail(), 29 | 'email_verified_at' => now(), 30 | 'password' => static::$password ??= Hash::make('password'), 31 | 'remember_token' => Str::random(10), 32 | ]; 33 | } 34 | 35 | /** 36 | * Indicate that the model's email address should be unverified. 37 | */ 38 | public function unverified(): static 39 | { 40 | return $this->state(fn (array $attributes) => [ 41 | 'email_verified_at' => null, 42 | ]); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | tests/Unit 10 | 11 | 12 | tests/Feature 13 | 14 | 15 | 16 | 17 | app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/Livewire/Auth/Register.php: -------------------------------------------------------------------------------- 1 | validate([ 30 | 'name' => ['required', 'string', 'max:255'], 31 | 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:'.User::class], 32 | 'password' => ['required', 'string', 'confirmed', Rules\Password::defaults()], 33 | ]); 34 | 35 | $validated['password'] = Hash::make($validated['password']); 36 | 37 | event(new Registered(($user = User::create($validated)))); 38 | 39 | Auth::login($user); 40 | 41 | $this->redirect(route('dashboard', absolute: false), navigate: true); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /resources/views/dashboard.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 | 6 |
7 |
8 | 9 |
10 |
11 | 12 |
13 |
14 |
15 | 16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /resources/views/flux/icon/layout-grid.blade.php: -------------------------------------------------------------------------------- 1 | {{-- Credit: Lucide (https://lucide.dev) --}} 2 | 3 | @props([ 4 | 'variant' => 'outline', 5 | ]) 6 | 7 | @php 8 | if ($variant === 'solid') { 9 | throw new \Exception('The "solid" variant is not supported in Lucide.'); 10 | } 11 | 12 | $classes = Flux::classes('shrink-0')->add( 13 | match ($variant) { 14 | 'outline' => '[:where(&)]:size-6', 15 | 'solid' => '[:where(&)]:size-6', 16 | 'mini' => '[:where(&)]:size-5', 17 | 'micro' => '[:where(&)]:size-4', 18 | }, 19 | ); 20 | 21 | $strokeWidth = match ($variant) { 22 | 'outline' => 2, 23 | 'mini' => 2.25, 24 | 'micro' => 2.5, 25 | }; 26 | @endphp 27 | 28 | class($classes) }} 30 | data-flux-icon 31 | xmlns="http://www.w3.org/2000/svg" 32 | viewBox="0 0 24 24" 33 | fill="none" 34 | stroke="currentColor" 35 | stroke-width="{{ $strokeWidth }}" 36 | stroke-linecap="round" 37 | stroke-linejoin="round" 38 | aria-hidden="true" 39 | data-slot="icon" 40 | > 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | APP_LOCALE=en 8 | APP_FALLBACK_LOCALE=en 9 | APP_FAKER_LOCALE=en_US 10 | 11 | APP_MAINTENANCE_DRIVER=file 12 | # APP_MAINTENANCE_STORE=database 13 | 14 | PHP_CLI_SERVER_WORKERS=4 15 | 16 | BCRYPT_ROUNDS=12 17 | 18 | LOG_CHANNEL=stack 19 | LOG_STACK=single 20 | LOG_DEPRECATIONS_CHANNEL=null 21 | LOG_LEVEL=debug 22 | 23 | DB_CONNECTION=sqlite 24 | # DB_HOST=127.0.0.1 25 | # DB_PORT=3306 26 | # DB_DATABASE=laravel 27 | # DB_USERNAME=root 28 | # DB_PASSWORD= 29 | 30 | SESSION_DRIVER=database 31 | SESSION_LIFETIME=120 32 | SESSION_ENCRYPT=false 33 | SESSION_PATH=/ 34 | SESSION_DOMAIN=null 35 | 36 | BROADCAST_CONNECTION=log 37 | FILESYSTEM_DISK=local 38 | QUEUE_CONNECTION=database 39 | 40 | CACHE_STORE=database 41 | # CACHE_PREFIX= 42 | 43 | MEMCACHED_HOST=127.0.0.1 44 | 45 | REDIS_CLIENT=phpredis 46 | REDIS_HOST=127.0.0.1 47 | REDIS_PASSWORD=null 48 | REDIS_PORT=6379 49 | 50 | MAIL_MAILER=log 51 | MAIL_SCHEME=null 52 | MAIL_HOST=127.0.0.1 53 | MAIL_PORT=2525 54 | MAIL_USERNAME=null 55 | MAIL_PASSWORD=null 56 | MAIL_FROM_ADDRESS="hello@example.com" 57 | MAIL_FROM_NAME="${APP_NAME}" 58 | 59 | AWS_ACCESS_KEY_ID= 60 | AWS_SECRET_ACCESS_KEY= 61 | AWS_DEFAULT_REGION=us-east-1 62 | AWS_BUCKET= 63 | AWS_USE_PATH_STYLE_ENDPOINT=false 64 | 65 | VITE_APP_NAME="${APP_NAME}" 66 | -------------------------------------------------------------------------------- /resources/views/components/layouts/auth/card.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('partials.head') 5 | 6 | 7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | {{ config('app.name', 'Laravel') }} 15 | 16 | 17 |
18 |
19 |
{{ $slot }}
20 |
21 |
22 |
23 |
24 | @fluxScripts 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/Livewire/Settings/Password.php: -------------------------------------------------------------------------------- 1 | validate([ 26 | 'current_password' => ['required', 'string', 'current_password'], 27 | 'password' => ['required', 'string', PasswordRule::defaults(), 'confirmed'], 28 | ]); 29 | } catch (ValidationException $e) { 30 | $this->reset('current_password', 'password', 'password_confirmation'); 31 | 32 | throw $e; 33 | } 34 | 35 | Auth::user()->update([ 36 | 'password' => Hash::make($validated['password']), 37 | ]); 38 | 39 | $this->reset('current_password', 'password', 'password_confirmation'); 40 | 41 | $this->dispatch('password-updated'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /resources/views/flux/icon/folder-git-2.blade.php: -------------------------------------------------------------------------------- 1 | {{-- Credit: Lucide (https://lucide.dev) --}} 2 | 3 | @props([ 4 | 'variant' => 'outline', 5 | ]) 6 | 7 | @php 8 | if ($variant === 'solid') { 9 | throw new \Exception('The "solid" variant is not supported in Lucide.'); 10 | } 11 | 12 | $classes = Flux::classes('shrink-0')->add( 13 | match ($variant) { 14 | 'outline' => '[:where(&)]:size-6', 15 | 'solid' => '[:where(&)]:size-6', 16 | 'mini' => '[:where(&)]:size-5', 17 | 'micro' => '[:where(&)]:size-4', 18 | }, 19 | ); 20 | 21 | $strokeWidth = match ($variant) { 22 | 'outline' => 2, 23 | 'mini' => 2.25, 24 | 'micro' => 2.5, 25 | }; 26 | @endphp 27 | 28 | class($classes) }} 30 | data-flux-icon 31 | xmlns="http://www.w3.org/2000/svg" 32 | viewBox="0 0 24 24" 33 | fill="none" 34 | stroke="currentColor" 35 | stroke-width="{{ $strokeWidth }}" 36 | stroke-linecap="round" 37 | stroke-linejoin="round" 38 | aria-hidden="true" 39 | data-slot="icon" 40 | > 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /workflows/tests.yml: -------------------------------------------------------------------------------- 1 | name: tests 2 | 3 | on: 4 | push: 5 | branches: 6 | - develop 7 | - main 8 | pull_request: 9 | branches: 10 | - develop 11 | - main 12 | 13 | jobs: 14 | ci: 15 | runs-on: ubuntu-latest 16 | environment: Testing 17 | 18 | steps: 19 | - name: Checkout 20 | uses: actions/checkout@v4 21 | 22 | - name: Setup PHP 23 | uses: shivammathur/setup-php@v2 24 | with: 25 | php-version: 8.4 26 | tools: composer:v2 27 | coverage: xdebug 28 | 29 | - name: Setup Node 30 | uses: actions/setup-node@v4 31 | with: 32 | node-version: '22' 33 | cache: 'npm' 34 | 35 | - name: Install Node Dependencies 36 | run: npm i 37 | 38 | - name: Add Flux Credentials Loaded From ENV 39 | run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}" 40 | 41 | - name: Install Dependencies 42 | run: composer install --no-interaction --prefer-dist --optimize-autoloader 43 | 44 | - name: Copy Environment File 45 | run: cp .env.example .env 46 | 47 | - name: Generate Application Key 48 | run: php artisan key:generate 49 | 50 | - name: Build Assets 51 | run: npm run build 52 | 53 | - name: Run Tests 54 | run: ./vendor/bin/phpunit -------------------------------------------------------------------------------- /resources/views/flux/icon/book-open-text.blade.php: -------------------------------------------------------------------------------- 1 | {{-- Credit: Lucide (https://lucide.dev) --}} 2 | 3 | @props([ 4 | 'variant' => 'outline', 5 | ]) 6 | 7 | @php 8 | if ($variant === 'solid') { 9 | throw new \Exception('The "solid" variant is not supported in Lucide.'); 10 | } 11 | 12 | $classes = Flux::classes('shrink-0')->add( 13 | match ($variant) { 14 | 'outline' => '[:where(&)]:size-6', 15 | 'solid' => '[:where(&)]:size-6', 16 | 'mini' => '[:where(&)]:size-5', 17 | 'micro' => '[:where(&)]:size-4', 18 | }, 19 | ); 20 | 21 | $strokeWidth = match ($variant) { 22 | 'outline' => 2, 23 | 'mini' => 2.25, 24 | 'micro' => 2.5, 25 | }; 26 | @endphp 27 | 28 | class($classes) }} 30 | data-flux-icon 31 | xmlns="http://www.w3.org/2000/svg" 32 | viewBox="0 0 24 24" 33 | fill="none" 34 | stroke="currentColor" 35 | stroke-width="{{ $strokeWidth }}" 36 | stroke-linecap="round" 37 | stroke-linejoin="round" 38 | aria-hidden="true" 39 | data-slot="icon" 40 | > 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /resources/views/livewire/auth/reset-password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 16 | 17 | 18 | 26 | 27 | 28 | 36 | 37 |
38 | 39 | {{ __('Reset password') }} 40 | 41 |
42 | 43 |
44 | -------------------------------------------------------------------------------- /tests/Feature/Auth/PasswordConfirmationTest.php: -------------------------------------------------------------------------------- 1 | create(); 18 | 19 | $response = $this->actingAs($user)->get('/confirm-password'); 20 | 21 | $response->assertStatus(200); 22 | } 23 | 24 | public function test_password_can_be_confirmed(): void 25 | { 26 | $user = User::factory()->create(); 27 | 28 | $this->actingAs($user); 29 | 30 | $response = Livewire::test(ConfirmPassword::class) 31 | ->set('password', 'password') 32 | ->call('confirmPassword'); 33 | 34 | $response 35 | ->assertHasNoErrors() 36 | ->assertRedirect(route('dashboard', absolute: false)); 37 | } 38 | 39 | public function test_password_is_not_confirmed_with_invalid_password(): void 40 | { 41 | $user = User::factory()->create(); 42 | 43 | $this->actingAs($user); 44 | 45 | $response = Livewire::test(ConfirmPassword::class) 46 | ->set('password', 'wrong-password') 47 | ->call('confirmPassword'); 48 | 49 | $response->assertHasErrors(['password']); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | */ 14 | use HasFactory, Notifiable; 15 | 16 | /** 17 | * The attributes that are mass assignable. 18 | * 19 | * @var list 20 | */ 21 | protected $fillable = [ 22 | 'name', 23 | 'email', 24 | 'password', 25 | ]; 26 | 27 | /** 28 | * The attributes that should be hidden for serialization. 29 | * 30 | * @var list 31 | */ 32 | protected $hidden = [ 33 | 'password', 34 | 'remember_token', 35 | ]; 36 | 37 | /** 38 | * Get the attributes that should be cast. 39 | * 40 | * @return array 41 | */ 42 | protected function casts(): array 43 | { 44 | return [ 45 | 'email_verified_at' => 'datetime', 46 | 'password' => 'hashed', 47 | ]; 48 | } 49 | 50 | /** 51 | * Get the user's initials 52 | */ 53 | public function initials(): string 54 | { 55 | return Str::of($this->name) 56 | ->explode(' ') 57 | ->map(fn (string $name) => Str::of($name)->substr(0, 1)) 58 | ->implode(''); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /resources/views/livewire/settings/password.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @include('partials.settings-heading') 3 | 4 | 5 |
6 | 13 | 20 | 27 | 28 |
29 |
30 | {{ __('Save') }} 31 |
32 | 33 | 34 | {{ __('Saved.') }} 35 | 36 |
37 | 38 |
39 |
40 | -------------------------------------------------------------------------------- /tests/Feature/Settings/PasswordUpdateTest.php: -------------------------------------------------------------------------------- 1 | create([ 19 | 'password' => Hash::make('password'), 20 | ]); 21 | 22 | $this->actingAs($user); 23 | 24 | $response = Livewire::test(Password::class) 25 | ->set('current_password', 'password') 26 | ->set('password', 'new-password') 27 | ->set('password_confirmation', 'new-password') 28 | ->call('updatePassword'); 29 | 30 | $response->assertHasNoErrors(); 31 | 32 | $this->assertTrue(Hash::check('new-password', $user->refresh()->password)); 33 | } 34 | 35 | public function test_correct_password_must_be_provided_to_update_password(): void 36 | { 37 | $user = User::factory()->create([ 38 | 'password' => Hash::make('password'), 39 | ]); 40 | 41 | $this->actingAs($user); 42 | 43 | $response = Livewire::test(Password::class) 44 | ->set('current_password', 'wrong-password') 45 | ->set('password', 'new-password') 46 | ->set('password_confirmation', 'new-password') 47 | ->call('updatePassword'); 48 | 49 | $response->assertHasErrors(['current_password']); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /tests/Feature/Auth/AuthenticationTest.php: -------------------------------------------------------------------------------- 1 | get('/login'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | 22 | public function test_users_can_authenticate_using_the_login_screen(): void 23 | { 24 | $user = User::factory()->create(); 25 | 26 | $response = Livewire::test(Login::class) 27 | ->set('email', $user->email) 28 | ->set('password', 'password') 29 | ->call('login'); 30 | 31 | $response 32 | ->assertHasNoErrors() 33 | ->assertRedirect(route('dashboard', absolute: false)); 34 | 35 | $this->assertAuthenticated(); 36 | } 37 | 38 | public function test_users_can_not_authenticate_with_invalid_password(): void 39 | { 40 | $user = User::factory()->create(); 41 | 42 | $this->post('/login', [ 43 | 'email' => $user->email, 44 | 'password' => 'wrong-password', 45 | ]); 46 | 47 | $this->assertGuest(); 48 | } 49 | 50 | public function test_users_can_logout(): void 51 | { 52 | $user = User::factory()->create(); 53 | 54 | $response = $this->actingAs($user)->post('/logout'); 55 | 56 | $this->assertGuest(); 57 | $response->assertRedirect('/'); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('name'); 17 | $table->string('email')->unique(); 18 | $table->timestamp('email_verified_at')->nullable(); 19 | $table->string('password'); 20 | $table->rememberToken(); 21 | $table->timestamps(); 22 | }); 23 | 24 | Schema::create('password_reset_tokens', function (Blueprint $table) { 25 | $table->string('email')->primary(); 26 | $table->string('token'); 27 | $table->timestamp('created_at')->nullable(); 28 | }); 29 | 30 | Schema::create('sessions', function (Blueprint $table) { 31 | $table->string('id')->primary(); 32 | $table->foreignId('user_id')->nullable()->index(); 33 | $table->string('ip_address', 45)->nullable(); 34 | $table->text('user_agent')->nullable(); 35 | $table->longText('payload'); 36 | $table->integer('last_activity')->index(); 37 | }); 38 | } 39 | 40 | /** 41 | * Reverse the migrations. 42 | */ 43 | public function down(): void 44 | { 45 | Schema::dropIfExists('users'); 46 | Schema::dropIfExists('password_reset_tokens'); 47 | Schema::dropIfExists('sessions'); 48 | } 49 | }; 50 | -------------------------------------------------------------------------------- /resources/views/flux/navlist/group.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'expandable' => false, 3 | 'expanded' => true, 4 | 'heading' => null, 5 | ]) 6 | 7 | 8 | 9 | class('group/disclosure') }} 11 | @if ($expanded === true) open @endif 12 | data-flux-navlist-group 13 | > 14 | 25 | 26 | 31 | 32 | 33 | 34 | 35 |
class('block space-y-[2px]') }}> 36 |
37 |
{{ $heading }}
38 |
39 | 40 |
41 | {{ $slot }} 42 |
43 |
44 | 45 | 46 | 47 |
class('block space-y-[2px]') }}> 48 | {{ $slot }} 49 |
50 | 51 | 52 | -------------------------------------------------------------------------------- /resources/views/livewire/settings/delete-user-form.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | {{ __('Delete account') }} 4 | {{ __('Delete your account and all of its resources') }} 5 |
6 | 7 | 8 | 9 | {{ __('Delete account') }} 10 | 11 | 12 | 13 | 14 |
15 |
16 | {{ __('Are you sure you want to delete your account?') }} 17 | 18 | 19 | {{ __('Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.') }} 20 | 21 |
22 | 23 | 24 | 25 |
26 | 27 | {{ __('Cancel') }} 28 | 29 | 30 | {{ __('Delete account') }} 31 |
32 | 33 |
34 |
35 | -------------------------------------------------------------------------------- /resources/views/dropdown.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 | 10 | 11 | 12 | 28 | 29 |
30 | @endsection 31 | -------------------------------------------------------------------------------- /tests/Pest.php: -------------------------------------------------------------------------------- 1 | extend(Tests\TestCase::class) 15 | ->use(Illuminate\Foundation\Testing\RefreshDatabase::class) 16 | ->in('Feature'); 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Expectations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | When you're writing tests, you often need to check that values meet certain conditions. The 24 | | "expect()" function gives you access to a set of "expectations" methods that you can use 25 | | to assert different things. Of course, you may extend the Expectation API at any time. 26 | | 27 | */ 28 | 29 | expect()->extend('toBeOne', function () { 30 | return $this->toBe(1); 31 | }); 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Functions 36 | |-------------------------------------------------------------------------- 37 | | 38 | | While Pest is very powerful out-of-the-box, you may have some testing code specific to your 39 | | project that you don't want to repeat in every file. Here you can also expose helpers as 40 | | global functions to help you to reduce the number of lines of code in your test files. 41 | | 42 | */ 43 | 44 | function something() 45 | { 46 | // .. 47 | } 48 | -------------------------------------------------------------------------------- /tests/Feature/Auth/EmailVerificationTest.php: -------------------------------------------------------------------------------- 1 | unverified()->create(); 19 | 20 | $response = $this->actingAs($user)->get('/verify-email'); 21 | 22 | $response->assertStatus(200); 23 | } 24 | 25 | public function test_email_can_be_verified(): void 26 | { 27 | $user = User::factory()->unverified()->create(); 28 | 29 | Event::fake(); 30 | 31 | $verificationUrl = URL::temporarySignedRoute( 32 | 'verification.verify', 33 | now()->addMinutes(60), 34 | ['id' => $user->id, 'hash' => sha1($user->email)] 35 | ); 36 | 37 | $response = $this->actingAs($user)->get($verificationUrl); 38 | 39 | Event::assertDispatched(Verified::class); 40 | 41 | $this->assertTrue($user->fresh()->hasVerifiedEmail()); 42 | $response->assertRedirect(route('dashboard', absolute: false).'?verified=1'); 43 | } 44 | 45 | public function test_email_is_not_verified_with_invalid_hash(): void 46 | { 47 | $user = User::factory()->unverified()->create(); 48 | 49 | $verificationUrl = URL::temporarySignedRoute( 50 | 'verification.verify', 51 | now()->addMinutes(60), 52 | ['id' => $user->id, 'hash' => sha1('wrong-email')] 53 | ); 54 | 55 | $this->actingAs($user)->get($verificationUrl); 56 | 57 | $this->assertFalse($user->fresh()->hasVerifiedEmail()); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/Livewire/Settings/Profile.php: -------------------------------------------------------------------------------- 1 | name = Auth::user()->name; 23 | $this->email = Auth::user()->email; 24 | } 25 | 26 | /** 27 | * Update the profile information for the currently authenticated user. 28 | */ 29 | public function updateProfileInformation(): void 30 | { 31 | $user = Auth::user(); 32 | 33 | $validated = $this->validate([ 34 | 'name' => ['required', 'string', 'max:255'], 35 | 36 | 'email' => [ 37 | 'required', 38 | 'string', 39 | 'lowercase', 40 | 'email', 41 | 'max:255', 42 | Rule::unique(User::class)->ignore($user->id), 43 | ], 44 | ]); 45 | 46 | $user->fill($validated); 47 | 48 | if ($user->isDirty('email')) { 49 | $user->email_verified_at = null; 50 | } 51 | 52 | $user->save(); 53 | 54 | $this->dispatch('profile-updated', name: $user->name); 55 | } 56 | 57 | /** 58 | * Send an email verification notification to the current user. 59 | */ 60 | public function resendVerificationNotification(): void 61 | { 62 | $user = Auth::user(); 63 | 64 | if ($user->hasVerifiedEmail()) { 65 | $this->redirectIntended(default: route('dashboard', absolute: false)); 66 | 67 | return; 68 | } 69 | 70 | $user->sendEmailVerificationNotification(); 71 | 72 | Session::flash('status', 'verification-link-sent'); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /resources/views/livewire/auth/login.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 18 | 19 | 20 |
21 | 29 | 30 | @if (Route::has('password.request')) 31 | 32 | {{ __('Forgot your password?') }} 33 | 34 | @endif 35 |
36 | 37 | 38 | 39 | 40 |
41 | {{ __('Log in') }} 42 |
43 | 44 | 45 | @if (Route::has('register')) 46 |
47 | {{ __('Don\'t have an account?') }} 48 | {{ __('Sign up') }} 49 |
50 | @endif 51 |
52 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000002_create_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('queue')->index(); 17 | $table->longText('payload'); 18 | $table->unsignedTinyInteger('attempts'); 19 | $table->unsignedInteger('reserved_at')->nullable(); 20 | $table->unsignedInteger('available_at'); 21 | $table->unsignedInteger('created_at'); 22 | }); 23 | 24 | Schema::create('job_batches', function (Blueprint $table) { 25 | $table->string('id')->primary(); 26 | $table->string('name'); 27 | $table->integer('total_jobs'); 28 | $table->integer('pending_jobs'); 29 | $table->integer('failed_jobs'); 30 | $table->longText('failed_job_ids'); 31 | $table->mediumText('options')->nullable(); 32 | $table->integer('cancelled_at')->nullable(); 33 | $table->integer('created_at'); 34 | $table->integer('finished_at')->nullable(); 35 | }); 36 | 37 | Schema::create('failed_jobs', function (Blueprint $table) { 38 | $table->id(); 39 | $table->string('uuid')->unique(); 40 | $table->text('connection'); 41 | $table->text('queue'); 42 | $table->longText('payload'); 43 | $table->longText('exception'); 44 | $table->timestamp('failed_at')->useCurrent(); 45 | }); 46 | } 47 | 48 | /** 49 | * Reverse the migrations. 50 | */ 51 | public function down(): void 52 | { 53 | Schema::dropIfExists('jobs'); 54 | Schema::dropIfExists('job_batches'); 55 | Schema::dropIfExists('failed_jobs'); 56 | } 57 | }; 58 | -------------------------------------------------------------------------------- /resources/views/livewire/auth/register.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 18 | 19 | 20 | 28 | 29 | 30 | 38 | 39 | 40 | 48 | 49 |
50 | 51 | {{ __('Create account') }} 52 | 53 |
54 | 55 | 56 |
57 | {{ __('Already have an account?') }} 58 | {{ __('Log in') }} 59 |
60 |
61 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 1 | @import 'tailwindcss'; 2 | @import '../../vendor/livewire/flux/dist/flux.css'; 3 | 4 | @import "flowbite/src/themes/default"; 5 | @plugin "flowbite/plugin"; 6 | @source "../../node_modules/flowbite"; 7 | @source "../../node_modules/flowbite-datepicker"; 8 | 9 | 10 | @source "../views"; 11 | @source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; 12 | @source '../../vendor/livewire/flux-pro/stubs/**/*.blade.php'; 13 | @source '../../vendor/livewire/flux/stubs/**/*.blade.php'; 14 | 15 | @custom-variant dark (&:where(.dark, .dark *)); 16 | 17 | @theme { 18 | --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; 19 | 20 | --color-zinc-50: #fafafa; 21 | --color-zinc-100: #f5f5f5; 22 | --color-zinc-200: #e5e5e5; 23 | --color-zinc-300: #d4d4d4; 24 | --color-zinc-400: #a3a3a3; 25 | --color-zinc-500: #737373; 26 | --color-zinc-600: #525252; 27 | --color-zinc-700: #404040; 28 | --color-zinc-800: #262626; 29 | --color-zinc-900: #171717; 30 | --color-zinc-950: #0a0a0a; 31 | 32 | --color-accent: var(--color-neutral-800); 33 | --color-accent-content: var(--color-neutral-800); 34 | --color-accent-foreground: var(--color-white); 35 | } 36 | 37 | @layer theme { 38 | .dark { 39 | --color-accent: var(--color-white); 40 | --color-accent-content: var(--color-white); 41 | --color-accent-foreground: var(--color-neutral-800); 42 | } 43 | } 44 | 45 | @layer base { 46 | 47 | *, 48 | ::after, 49 | ::before, 50 | ::backdrop, 51 | ::file-selector-button { 52 | border-color: var(--color-gray-200, currentColor); 53 | } 54 | } 55 | 56 | [data-flux-field] { 57 | @apply grid gap-2; 58 | } 59 | 60 | [data-flux-label] { 61 | @apply !mb-0 !leading-tight; 62 | } 63 | 64 | input:focus[data-flux-control], 65 | textarea:focus[data-flux-control], 66 | select:focus[data-flux-control] { 67 | @apply outline-hidden ring-2 ring-accent ring-offset-2 ring-offset-accent-foreground; 68 | } 69 | 70 | /* \[:where(&)\]:size-4 { 71 | @apply size-4; 72 | } */ 73 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('home'); 11 | 12 | Route::get('/accordion', function () { 13 | return view('accordion'); 14 | })->name('accordion'); 15 | 16 | Route::get('/carousel', function () { 17 | return view('carousel'); 18 | })->name('carousel'); 19 | 20 | Route::get('/modal', function () { 21 | return view('modal'); 22 | })->name('modal'); 23 | 24 | Route::get('/collapse', function () { 25 | return view('collapse'); 26 | })->name('collapse'); 27 | 28 | Route::get('/dial', function () { 29 | return view('dial'); 30 | })->name('dial'); 31 | 32 | Route::get('/dismiss', function () { 33 | return view('dismiss'); 34 | })->name('dismiss'); 35 | 36 | Route::get('/drawer', function () { 37 | return view('drawer'); 38 | })->name('drawer'); 39 | 40 | Route::get('/dropdown', function () { 41 | return view('dropdown'); 42 | })->name('dropdown'); 43 | 44 | Route::get('/popover', function () { 45 | return view('popover'); 46 | })->name('popover'); 47 | 48 | Route::get('/tooltip', function () { 49 | return view('tooltip'); 50 | })->name('tooltip'); 51 | 52 | Route::get('/input-counter', function () { 53 | return view('input-counter'); 54 | })->name('input-counter'); 55 | 56 | Route::get('/tabs', function () { 57 | return view('tabs'); 58 | })->name('tabs'); 59 | 60 | Route::get('/datepicker', function () { 61 | return view('datepicker'); 62 | })->name('datepicker'); 63 | 64 | Route::view('dashboard', 'dashboard') 65 | ->middleware(['auth', 'verified']) 66 | ->name('dashboard'); 67 | 68 | Route::middleware(['auth'])->group(function () { 69 | Route::redirect('settings', 'settings/profile'); 70 | 71 | Route::get('settings/profile', Profile::class)->name('settings.profile'); 72 | Route::get('settings/password', Password::class)->name('settings.password'); 73 | Route::get('settings/appearance', Appearance::class)->name('settings.appearance'); 74 | }); 75 | 76 | require __DIR__.'/auth.php'; 77 | -------------------------------------------------------------------------------- /resources/views/livewire/settings/profile.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @include('partials.settings-heading') 3 | 4 | 5 |
6 | 7 | 8 |
9 | 10 | 11 | @if (auth()->user() instanceof \Illuminate\Contracts\Auth\MustVerifyEmail &&! auth()->user()->hasVerifiedEmail()) 12 |
13 | 14 | {{ __('Your email address is unverified.') }} 15 | 16 | 17 | {{ __('Click here to re-send the verification email.') }} 18 | 19 | 20 | 21 | @if (session('status') === 'verification-link-sent') 22 | 23 | {{ __('A new verification link has been sent to your email address.') }} 24 | 25 | @endif 26 |
27 | @endif 28 |
29 | 30 |
31 |
32 | {{ __('Save') }} 33 |
34 | 35 | 36 | {{ __('Saved.') }} 37 | 38 |
39 | 40 | 41 | 42 |
43 |
44 | -------------------------------------------------------------------------------- /app/Livewire/Auth/Login.php: -------------------------------------------------------------------------------- 1 | validate(); 32 | 33 | $this->ensureIsNotRateLimited(); 34 | 35 | if (! Auth::attempt(['email' => $this->email, 'password' => $this->password], $this->remember)) { 36 | RateLimiter::hit($this->throttleKey()); 37 | 38 | throw ValidationException::withMessages([ 39 | 'email' => __('auth.failed'), 40 | ]); 41 | } 42 | 43 | RateLimiter::clear($this->throttleKey()); 44 | Session::regenerate(); 45 | 46 | $this->redirectIntended(default: route('dashboard', absolute: false), navigate: true); 47 | } 48 | 49 | /** 50 | * Ensure the authentication request is not rate limited. 51 | */ 52 | protected function ensureIsNotRateLimited(): void 53 | { 54 | if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { 55 | return; 56 | } 57 | 58 | event(new Lockout(request())); 59 | 60 | $seconds = RateLimiter::availableIn($this->throttleKey()); 61 | 62 | throw ValidationException::withMessages([ 63 | 'email' => __('auth.throttle', [ 64 | 'seconds' => $seconds, 65 | 'minutes' => ceil($seconds / 60), 66 | ]), 67 | ]); 68 | } 69 | 70 | /** 71 | * Get the authentication rate limiting throttle key. 72 | */ 73 | protected function throttleKey(): string 74 | { 75 | return Str::transliterate(Str::lower($this->email).'|'.request()->ip()); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /resources/views/components/layouts/auth/split.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('partials.head') 5 | 6 | 7 |
8 | 28 | 40 |
41 | @fluxScripts 42 | 43 | 44 | -------------------------------------------------------------------------------- /app/Livewire/Auth/ResetPassword.php: -------------------------------------------------------------------------------- 1 | token = $token; 33 | 34 | $this->email = request()->string('email'); 35 | } 36 | 37 | /** 38 | * Reset the password for the given user. 39 | */ 40 | public function resetPassword(): void 41 | { 42 | $this->validate([ 43 | 'token' => ['required'], 44 | 'email' => ['required', 'string', 'email'], 45 | 'password' => ['required', 'string', 'confirmed', Rules\Password::defaults()], 46 | ]); 47 | 48 | // Here we will attempt to reset the user's password. If it is successful we 49 | // will update the password on an actual user model and persist it to the 50 | // database. Otherwise we will parse the error and return the response. 51 | $status = Password::reset( 52 | $this->only('email', 'password', 'password_confirmation', 'token'), 53 | function ($user) { 54 | $user->forceFill([ 55 | 'password' => Hash::make($this->password), 56 | 'remember_token' => Str::random(60), 57 | ])->save(); 58 | 59 | event(new PasswordReset($user)); 60 | } 61 | ); 62 | 63 | // If the password was successfully reset, we will redirect the user back to 64 | // the application's home authenticated view. If there is an error we can 65 | // redirect them back to where they came from with their error message. 66 | if ($status != Password::PasswordReset) { 67 | $this->addError('email', __($status)); 68 | 69 | return; 70 | } 71 | 72 | Session::flash('status', __($status)); 73 | 74 | $this->redirectRoute('login', navigate: true); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://getcomposer.org/schema.json", 3 | "name": "laravel/livewire-starter-kit", 4 | "type": "project", 5 | "description": "The official Laravel starter kit for Livewire.", 6 | "keywords": [ 7 | "laravel", 8 | "framework" 9 | ], 10 | "license": "MIT", 11 | "require": { 12 | "php": "^8.2", 13 | "laravel/framework": "^12.0", 14 | "laravel/tinker": "^2.10.1", 15 | "livewire/flux": "^2.0" 16 | }, 17 | "require-dev": { 18 | "fakerphp/faker": "^1.23", 19 | "laravel/pail": "^1.2.2", 20 | "laravel/pint": "^1.18", 21 | "laravel/sail": "^1.41", 22 | "mockery/mockery": "^1.6", 23 | "nunomaduro/collision": "^8.6", 24 | "phpunit/phpunit": "^11.5.3" 25 | }, 26 | "autoload": { 27 | "psr-4": { 28 | "App\\": "app/", 29 | "Database\\Factories\\": "database/factories/", 30 | "Database\\Seeders\\": "database/seeders/" 31 | } 32 | }, 33 | "autoload-dev": { 34 | "psr-4": { 35 | "Tests\\": "tests/" 36 | } 37 | }, 38 | "scripts": { 39 | "post-autoload-dump": [ 40 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 41 | "@php artisan package:discover --ansi" 42 | ], 43 | "post-update-cmd": [ 44 | "@php artisan vendor:publish --tag=laravel-assets --ansi --force" 45 | ], 46 | "post-root-package-install": [ 47 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 48 | ], 49 | "post-create-project-cmd": [ 50 | "@php artisan key:generate --ansi", 51 | "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"", 52 | "@php artisan migrate --graceful --ansi" 53 | ], 54 | "dev": [ 55 | "Composer\\Config::disableProcessTimeout", 56 | "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite" 57 | ] 58 | }, 59 | "extra": { 60 | "laravel": { 61 | "dont-discover": [] 62 | } 63 | }, 64 | "config": { 65 | "optimize-autoloader": true, 66 | "preferred-install": "dist", 67 | "sort-packages": true, 68 | "allow-plugins": { 69 | "pestphp/pest-plugin": true, 70 | "php-http/discovery": true 71 | } 72 | }, 73 | "minimum-stability": "stable", 74 | "prefer-stable": true 75 | } -------------------------------------------------------------------------------- /tests/Feature/Auth/PasswordResetTest.php: -------------------------------------------------------------------------------- 1 | get('/forgot-password'); 21 | 22 | $response->assertStatus(200); 23 | } 24 | 25 | public function test_reset_password_link_can_be_requested(): void 26 | { 27 | Notification::fake(); 28 | 29 | $user = User::factory()->create(); 30 | 31 | Livewire::test(ForgotPassword::class) 32 | ->set('email', $user->email) 33 | ->call('sendPasswordResetLink'); 34 | 35 | Notification::assertSentTo($user, ResetPasswordNotification::class); 36 | } 37 | 38 | public function test_reset_password_screen_can_be_rendered(): void 39 | { 40 | Notification::fake(); 41 | 42 | $user = User::factory()->create(); 43 | 44 | Livewire::test(ForgotPassword::class) 45 | ->set('email', $user->email) 46 | ->call('sendPasswordResetLink'); 47 | 48 | Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) { 49 | $response = $this->get('/reset-password/'.$notification->token); 50 | 51 | $response->assertStatus(200); 52 | 53 | return true; 54 | }); 55 | } 56 | 57 | public function test_password_can_be_reset_with_valid_token(): void 58 | { 59 | Notification::fake(); 60 | 61 | $user = User::factory()->create(); 62 | 63 | Livewire::test(ForgotPassword::class) 64 | ->set('email', $user->email) 65 | ->call('sendPasswordResetLink'); 66 | 67 | Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) use ($user) { 68 | $response = Livewire::test(ResetPassword::class, ['token' => $notification->token]) 69 | ->set('email', $user->email) 70 | ->set('password', 'password') 71 | ->set('password_confirmation', 'password') 72 | ->call('resetPassword'); 73 | 74 | $response 75 | ->assertHasNoErrors() 76 | ->assertRedirect(route('login', absolute: false)); 77 | 78 | return true; 79 | }); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /tests/Feature/Settings/ProfileUpdateTest.php: -------------------------------------------------------------------------------- 1 | actingAs($user = User::factory()->create()); 18 | 19 | $this->get('/settings/profile')->assertOk(); 20 | } 21 | 22 | public function test_profile_information_can_be_updated(): void 23 | { 24 | $user = User::factory()->create(); 25 | 26 | $this->actingAs($user); 27 | 28 | $response = Livewire::test(Profile::class) 29 | ->set('name', 'Test User') 30 | ->set('email', 'test@example.com') 31 | ->call('updateProfileInformation'); 32 | 33 | $response->assertHasNoErrors(); 34 | 35 | $user->refresh(); 36 | 37 | $this->assertEquals('Test User', $user->name); 38 | $this->assertEquals('test@example.com', $user->email); 39 | $this->assertNull($user->email_verified_at); 40 | } 41 | 42 | public function test_email_verification_status_is_unchanged_when_email_address_is_unchanged(): void 43 | { 44 | $user = User::factory()->create(); 45 | 46 | $this->actingAs($user); 47 | 48 | $response = Livewire::test(Profile::class) 49 | ->set('name', 'Test User') 50 | ->set('email', $user->email) 51 | ->call('updateProfileInformation'); 52 | 53 | $response->assertHasNoErrors(); 54 | 55 | $this->assertNotNull($user->refresh()->email_verified_at); 56 | } 57 | 58 | public function test_user_can_delete_their_account(): void 59 | { 60 | $user = User::factory()->create(); 61 | 62 | $this->actingAs($user); 63 | 64 | $response = Livewire::test('settings.delete-user-form') 65 | ->set('password', 'password') 66 | ->call('deleteUser'); 67 | 68 | $response 69 | ->assertHasNoErrors() 70 | ->assertRedirect('/'); 71 | 72 | $this->assertNull($user->fresh()); 73 | $this->assertFalse(auth()->check()); 74 | } 75 | 76 | public function test_correct_password_must_be_provided_to_delete_account(): void 77 | { 78 | $user = User::factory()->create(); 79 | 80 | $this->actingAs($user); 81 | 82 | $response = Livewire::test('settings.delete-user-form') 83 | ->set('password', 'wrong-password') 84 | ->call('deleteUser'); 85 | 86 | $response->assertHasErrors(['password']); 87 | 88 | $this->assertNotNull($user->fresh()); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Below you may configure as many filesystem disks as necessary, and you 24 | | may even configure multiple disks for the same driver. Examples for 25 | | most supported storage drivers are configured here for reference. 26 | | 27 | | Supported drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app/private'), 36 | 'serve' => true, 37 | 'throw' => false, 38 | 'report' => false, 39 | ], 40 | 41 | 'public' => [ 42 | 'driver' => 'local', 43 | 'root' => storage_path('app/public'), 44 | 'url' => env('APP_URL').'/storage', 45 | 'visibility' => 'public', 46 | 'throw' => false, 47 | 'report' => false, 48 | ], 49 | 50 | 's3' => [ 51 | 'driver' => 's3', 52 | 'key' => env('AWS_ACCESS_KEY_ID'), 53 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 54 | 'region' => env('AWS_DEFAULT_REGION'), 55 | 'bucket' => env('AWS_BUCKET'), 56 | 'url' => env('AWS_URL'), 57 | 'endpoint' => env('AWS_ENDPOINT'), 58 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 59 | 'throw' => false, 60 | 'report' => false, 61 | ], 62 | 63 | ], 64 | 65 | /* 66 | |-------------------------------------------------------------------------- 67 | | Symbolic Links 68 | |-------------------------------------------------------------------------- 69 | | 70 | | Here you may configure the symbolic links that will be created when the 71 | | `storage:link` Artisan command is executed. The array keys should be 72 | | the locations of the links and the values should be their targets. 73 | | 74 | */ 75 | 76 | 'links' => [ 77 | public_path('storage') => storage_path('app/public'), 78 | ], 79 | 80 | ]; 81 | -------------------------------------------------------------------------------- /resources/views/input-counter.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 |
7 | 8 |
9 | 14 | 15 |
16 | 19 | Bedrooms 20 |
21 | 26 |
27 |

Please select the number of bedrooms.

28 |
29 | 30 |
31 | @endsection 32 | -------------------------------------------------------------------------------- /resources/views/collapse.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | 5 | 6 | 39 | @endsection 40 | -------------------------------------------------------------------------------- /resources/views/drawer.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 | 7 |
8 | 11 |
12 | 13 | 14 |
15 |
Info
18 | 24 | 25 |

Supercharge your hiring by taking advantage of our limited-time sale for Flowbite Docs + Job Board. Unlimited access to over 190K top-ranked candidates and the #1 design job board.

26 | 32 |
33 | 34 |
35 | @endsection 36 | -------------------------------------------------------------------------------- /resources/views/tabs.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 |
7 |
    8 | 11 | 14 | 17 |
  • 18 | 19 |
  • 20 |
21 |
22 |
23 | 26 | 29 | 32 | 35 |
36 | 37 |
38 | @endsection 39 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_STORE', 'database'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "array", "database", "file", "memcached", 30 | | "redis", "dynamodb", "octane", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'array' => [ 37 | 'driver' => 'array', 38 | 'serialize' => false, 39 | ], 40 | 41 | 'database' => [ 42 | 'driver' => 'database', 43 | 'connection' => env('DB_CACHE_CONNECTION'), 44 | 'table' => env('DB_CACHE_TABLE', 'cache'), 45 | 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), 46 | 'lock_table' => env('DB_CACHE_LOCK_TABLE'), 47 | ], 48 | 49 | 'file' => [ 50 | 'driver' => 'file', 51 | 'path' => storage_path('framework/cache/data'), 52 | 'lock_path' => storage_path('framework/cache/data'), 53 | ], 54 | 55 | 'memcached' => [ 56 | 'driver' => 'memcached', 57 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 58 | 'sasl' => [ 59 | env('MEMCACHED_USERNAME'), 60 | env('MEMCACHED_PASSWORD'), 61 | ], 62 | 'options' => [ 63 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 64 | ], 65 | 'servers' => [ 66 | [ 67 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 68 | 'port' => env('MEMCACHED_PORT', 11211), 69 | 'weight' => 100, 70 | ], 71 | ], 72 | ], 73 | 74 | 'redis' => [ 75 | 'driver' => 'redis', 76 | 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), 77 | 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), 78 | ], 79 | 80 | 'dynamodb' => [ 81 | 'driver' => 'dynamodb', 82 | 'key' => env('AWS_ACCESS_KEY_ID'), 83 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 84 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 85 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 86 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 87 | ], 88 | 89 | 'octane' => [ 90 | 'driver' => 'octane', 91 | ], 92 | 93 | ], 94 | 95 | /* 96 | |-------------------------------------------------------------------------- 97 | | Cache Key Prefix 98 | |-------------------------------------------------------------------------- 99 | | 100 | | When utilizing the APC, database, memcached, Redis, and DynamoDB cache 101 | | stores, there might be other applications using the same cache. For 102 | | that reason, you may prefix every cache key to avoid collisions. 103 | | 104 | */ 105 | 106 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), 107 | 108 | ]; 109 | -------------------------------------------------------------------------------- /resources/views/modal.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 6 | 7 | 10 | 11 | 12 | 45 |
46 | @endsection 47 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'log'), 18 | 19 | /* 20 | |-------------------------------------------------------------------------- 21 | | Mailer Configurations 22 | |-------------------------------------------------------------------------- 23 | | 24 | | Here you may configure all of the mailers used by your application plus 25 | | their respective settings. Several examples have been configured for 26 | | you and you are free to add your own as your application requires. 27 | | 28 | | Laravel supports a variety of mail "transport" drivers that can be used 29 | | when delivering an email. You may specify which one you're using for 30 | | your mailers below. You may also add additional mailers if needed. 31 | | 32 | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", 33 | | "postmark", "resend", "log", "array", 34 | | "failover", "roundrobin" 35 | | 36 | */ 37 | 38 | 'mailers' => [ 39 | 40 | 'smtp' => [ 41 | 'transport' => 'smtp', 42 | 'scheme' => env('MAIL_SCHEME'), 43 | 'url' => env('MAIL_URL'), 44 | 'host' => env('MAIL_HOST', '127.0.0.1'), 45 | 'port' => env('MAIL_PORT', 2525), 46 | 'username' => env('MAIL_USERNAME'), 47 | 'password' => env('MAIL_PASSWORD'), 48 | 'timeout' => null, 49 | 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)), 50 | ], 51 | 52 | 'ses' => [ 53 | 'transport' => 'ses', 54 | ], 55 | 56 | 'postmark' => [ 57 | 'transport' => 'postmark', 58 | // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), 59 | // 'client' => [ 60 | // 'timeout' => 5, 61 | // ], 62 | ], 63 | 64 | 'resend' => [ 65 | 'transport' => 'resend', 66 | ], 67 | 68 | 'sendmail' => [ 69 | 'transport' => 'sendmail', 70 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), 71 | ], 72 | 73 | 'log' => [ 74 | 'transport' => 'log', 75 | 'channel' => env('MAIL_LOG_CHANNEL'), 76 | ], 77 | 78 | 'array' => [ 79 | 'transport' => 'array', 80 | ], 81 | 82 | 'failover' => [ 83 | 'transport' => 'failover', 84 | 'mailers' => [ 85 | 'smtp', 86 | 'log', 87 | ], 88 | ], 89 | 90 | 'roundrobin' => [ 91 | 'transport' => 'roundrobin', 92 | 'mailers' => [ 93 | 'ses', 94 | 'postmark', 95 | ], 96 | ], 97 | 98 | ], 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Global "From" Address 103 | |-------------------------------------------------------------------------- 104 | | 105 | | You may wish for all emails sent by your application to be sent from 106 | | the same address. Here you may specify a name and address that is 107 | | used globally for all emails that are sent by your application. 108 | | 109 | */ 110 | 111 | 'from' => [ 112 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 113 | 'name' => env('MAIL_FROM_NAME', 'Example'), 114 | ], 115 | 116 | ]; 117 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'database'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection options for every queue backend 24 | | used by your application. An example configuration is provided for 25 | | each backend supported by Laravel. You're also free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'connection' => env('DB_QUEUE_CONNECTION'), 40 | 'table' => env('DB_QUEUE_TABLE', 'jobs'), 41 | 'queue' => env('DB_QUEUE', 'default'), 42 | 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), 43 | 'after_commit' => false, 44 | ], 45 | 46 | 'beanstalkd' => [ 47 | 'driver' => 'beanstalkd', 48 | 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), 49 | 'queue' => env('BEANSTALKD_QUEUE', 'default'), 50 | 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), 51 | 'block_for' => 0, 52 | 'after_commit' => false, 53 | ], 54 | 55 | 'sqs' => [ 56 | 'driver' => 'sqs', 57 | 'key' => env('AWS_ACCESS_KEY_ID'), 58 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 59 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 60 | 'queue' => env('SQS_QUEUE', 'default'), 61 | 'suffix' => env('SQS_SUFFIX'), 62 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 63 | 'after_commit' => false, 64 | ], 65 | 66 | 'redis' => [ 67 | 'driver' => 'redis', 68 | 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 69 | 'queue' => env('REDIS_QUEUE', 'default'), 70 | 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), 71 | 'block_for' => null, 72 | 'after_commit' => false, 73 | ], 74 | 75 | ], 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Job Batching 80 | |-------------------------------------------------------------------------- 81 | | 82 | | The following options configure the database and table that store job 83 | | batching information. These options can be updated to any database 84 | | connection and table which has been defined by your application. 85 | | 86 | */ 87 | 88 | 'batching' => [ 89 | 'database' => env('DB_CONNECTION', 'sqlite'), 90 | 'table' => 'job_batches', 91 | ], 92 | 93 | /* 94 | |-------------------------------------------------------------------------- 95 | | Failed Queue Jobs 96 | |-------------------------------------------------------------------------- 97 | | 98 | | These options configure the behavior of failed queue job logging so you 99 | | can control how and where failed jobs are stored. Laravel ships with 100 | | support for storing failed jobs in a simple file or in a database. 101 | | 102 | | Supported drivers: "database-uuids", "dynamodb", "file", "null" 103 | | 104 | */ 105 | 106 | 'failed' => [ 107 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 108 | 'database' => env('DB_CONNECTION', 'sqlite'), 109 | 'table' => 'failed_jobs', 110 | ], 111 | 112 | ]; 113 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => env('AUTH_GUARD', 'web'), 18 | 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | which utilizes session storage plus the Eloquent user provider. 29 | | 30 | | All authentication guards have a user provider, which defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | system used by the application. Typically, Eloquent is utilized. 33 | | 34 | | Supported: "session" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | User Providers 48 | |-------------------------------------------------------------------------- 49 | | 50 | | All authentication guards have a user provider, which defines how the 51 | | users are actually retrieved out of your database or other storage 52 | | system used by the application. Typically, Eloquent is utilized. 53 | | 54 | | If you have multiple user tables or models you may configure multiple 55 | | providers to represent the model / table. These providers may then 56 | | be assigned to any extra authentication guards you have defined. 57 | | 58 | | Supported: "database", "eloquent" 59 | | 60 | */ 61 | 62 | 'providers' => [ 63 | 'users' => [ 64 | 'driver' => 'eloquent', 65 | 'model' => env('AUTH_MODEL', App\Models\User::class), 66 | ], 67 | 68 | // 'users' => [ 69 | // 'driver' => 'database', 70 | // 'table' => 'users', 71 | // ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Resetting Passwords 77 | |-------------------------------------------------------------------------- 78 | | 79 | | These configuration options specify the behavior of Laravel's password 80 | | reset functionality, including the table utilized for token storage 81 | | and the user provider that is invoked to actually retrieve users. 82 | | 83 | | The expiry time is the number of minutes that each reset token will be 84 | | considered valid. This security feature keeps tokens short-lived so 85 | | they have less time to be guessed. You may change this as needed. 86 | | 87 | | The throttle setting is the number of seconds a user must wait before 88 | | generating more password reset tokens. This prevents the user from 89 | | quickly generating a very large amount of password reset tokens. 90 | | 91 | */ 92 | 93 | 'passwords' => [ 94 | 'users' => [ 95 | 'provider' => 'users', 96 | 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), 97 | 'expire' => 60, 98 | 'throttle' => 60, 99 | ], 100 | ], 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Password Confirmation Timeout 105 | |-------------------------------------------------------------------------- 106 | | 107 | | Here you may define the amount of seconds before a password confirmation 108 | | window expires and users are asked to re-enter their password via the 109 | | confirmation screen. By default, the timeout lasts for three hours. 110 | | 111 | */ 112 | 113 | 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800), 114 | 115 | ]; 116 | -------------------------------------------------------------------------------- /resources/views/carousel.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 55 |
56 | @endsection 57 | -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Application Environment 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This value determines the "environment" your application is currently 24 | | running in. This may determine how you prefer to configure various 25 | | services the application utilizes. Set this in your ".env" file. 26 | | 27 | */ 28 | 29 | 'env' => env('APP_ENV', 'production'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Application Debug Mode 34 | |-------------------------------------------------------------------------- 35 | | 36 | | When your application is in debug mode, detailed error messages with 37 | | stack traces will be shown on every error that occurs within your 38 | | application. If disabled, a simple generic error page is shown. 39 | | 40 | */ 41 | 42 | 'debug' => (bool) env('APP_DEBUG', false), 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Application URL 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This URL is used by the console to properly generate URLs when using 50 | | the Artisan command line tool. You should set this to the root of 51 | | the application so that it's available within Artisan commands. 52 | | 53 | */ 54 | 55 | 'url' => env('APP_URL', 'http://localhost'), 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Application Timezone 60 | |-------------------------------------------------------------------------- 61 | | 62 | | Here you may specify the default timezone for your application, which 63 | | will be used by the PHP date and date-time functions. The timezone 64 | | is set to "UTC" by default as it is suitable for most use cases. 65 | | 66 | */ 67 | 68 | 'timezone' => 'UTC', 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Application Locale Configuration 73 | |-------------------------------------------------------------------------- 74 | | 75 | | The application locale determines the default locale that will be used 76 | | by Laravel's translation / localization methods. This option can be 77 | | set to any locale for which you plan to have translation strings. 78 | | 79 | */ 80 | 81 | 'locale' => env('APP_LOCALE', 'en'), 82 | 83 | 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), 84 | 85 | 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Encryption Key 90 | |-------------------------------------------------------------------------- 91 | | 92 | | This key is utilized by Laravel's encryption services and should be set 93 | | to a random, 32 character string to ensure that all encrypted values 94 | | are secure. You should do this prior to deploying the application. 95 | | 96 | */ 97 | 98 | 'cipher' => 'AES-256-CBC', 99 | 100 | 'key' => env('APP_KEY'), 101 | 102 | 'previous_keys' => [ 103 | ...array_filter( 104 | explode(',', env('APP_PREVIOUS_KEYS', '')) 105 | ), 106 | ], 107 | 108 | /* 109 | |-------------------------------------------------------------------------- 110 | | Maintenance Mode Driver 111 | |-------------------------------------------------------------------------- 112 | | 113 | | These configuration options determine the driver used to determine and 114 | | manage Laravel's "maintenance mode" status. The "cache" driver will 115 | | allow maintenance mode to be controlled across multiple machines. 116 | | 117 | | Supported drivers: "file", "cache" 118 | | 119 | */ 120 | 121 | 'maintenance' => [ 122 | 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), 123 | 'store' => env('APP_MAINTENANCE_STORE', 'database'), 124 | ], 125 | 126 | ]; 127 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Deprecations Log Channel 26 | |-------------------------------------------------------------------------- 27 | | 28 | | This option controls the log channel that should be used to log warnings 29 | | regarding deprecated PHP and library features. This allows you to get 30 | | your application ready for upcoming major versions of dependencies. 31 | | 32 | */ 33 | 34 | 'deprecations' => [ 35 | 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 36 | 'trace' => env('LOG_DEPRECATIONS_TRACE', false), 37 | ], 38 | 39 | /* 40 | |-------------------------------------------------------------------------- 41 | | Log Channels 42 | |-------------------------------------------------------------------------- 43 | | 44 | | Here you may configure the log channels for your application. Laravel 45 | | utilizes the Monolog PHP logging library, which includes a variety 46 | | of powerful log handlers and formatters that you're free to use. 47 | | 48 | | Available drivers: "single", "daily", "slack", "syslog", 49 | | "errorlog", "monolog", "custom", "stack" 50 | | 51 | */ 52 | 53 | 'channels' => [ 54 | 55 | 'stack' => [ 56 | 'driver' => 'stack', 57 | 'channels' => explode(',', env('LOG_STACK', 'single')), 58 | 'ignore_exceptions' => false, 59 | ], 60 | 61 | 'single' => [ 62 | 'driver' => 'single', 63 | 'path' => storage_path('logs/laravel.log'), 64 | 'level' => env('LOG_LEVEL', 'debug'), 65 | 'replace_placeholders' => true, 66 | ], 67 | 68 | 'daily' => [ 69 | 'driver' => 'daily', 70 | 'path' => storage_path('logs/laravel.log'), 71 | 'level' => env('LOG_LEVEL', 'debug'), 72 | 'days' => env('LOG_DAILY_DAYS', 14), 73 | 'replace_placeholders' => true, 74 | ], 75 | 76 | 'slack' => [ 77 | 'driver' => 'slack', 78 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 79 | 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'), 80 | 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), 81 | 'level' => env('LOG_LEVEL', 'critical'), 82 | 'replace_placeholders' => true, 83 | ], 84 | 85 | 'papertrail' => [ 86 | 'driver' => 'monolog', 87 | 'level' => env('LOG_LEVEL', 'debug'), 88 | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 89 | 'handler_with' => [ 90 | 'host' => env('PAPERTRAIL_URL'), 91 | 'port' => env('PAPERTRAIL_PORT'), 92 | 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), 93 | ], 94 | 'processors' => [PsrLogMessageProcessor::class], 95 | ], 96 | 97 | 'stderr' => [ 98 | 'driver' => 'monolog', 99 | 'level' => env('LOG_LEVEL', 'debug'), 100 | 'handler' => StreamHandler::class, 101 | 'formatter' => env('LOG_STDERR_FORMATTER'), 102 | 'with' => [ 103 | 'stream' => 'php://stderr', 104 | ], 105 | 'processors' => [PsrLogMessageProcessor::class], 106 | ], 107 | 108 | 'syslog' => [ 109 | 'driver' => 'syslog', 110 | 'level' => env('LOG_LEVEL', 'debug'), 111 | 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), 112 | 'replace_placeholders' => true, 113 | ], 114 | 115 | 'errorlog' => [ 116 | 'driver' => 'errorlog', 117 | 'level' => env('LOG_LEVEL', 'debug'), 118 | 'replace_placeholders' => true, 119 | ], 120 | 121 | 'null' => [ 122 | 'driver' => 'monolog', 123 | 'handler' => NullHandler::class, 124 | ], 125 | 126 | 'emergency' => [ 127 | 'path' => storage_path('logs/laravel.log'), 128 | ], 129 | 130 | ], 131 | 132 | ]; 133 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |

Flowbite + Laravel + Tailwind CSS Starter

7 |
8 | Home 9 | Accordion 10 | Carousel 11 | Modal 12 | Collapse 13 | Speed Dial 14 | Dismiss 15 | Drawer 16 | Dropdown 17 | Popover 18 | Tabs 19 | Tooltip 20 | Input Counter 21 | Datepicker 22 |
23 | 24 |

Learn more about Flowbite + Laravel here.

25 |
26 |
27 | @endsection 28 | -------------------------------------------------------------------------------- /resources/views/accordion.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |

7 | 13 |

14 | 20 |

21 | 27 |

28 | 34 |

35 | 41 |

42 | 53 |
54 |
55 | @endsection 56 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/header.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('partials.head') 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | {{ __('Dashboard') }} 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 34 | 35 | 36 | 43 | 44 | 45 | 46 | 47 | 48 | 52 | 53 | 54 | 55 |
56 |
57 | 58 | 61 | {{ auth()->user()->initials() }} 62 | 63 | 64 | 65 |
66 | {{ auth()->user()->name }} 67 | {{ auth()->user()->email }} 68 |
69 |
70 |
71 |
72 | 73 | 74 | 75 | 76 | {{ __('Settings') }} 77 | 78 | 79 | 80 | 81 |
82 | @csrf 83 | 84 | {{ __('Log Out') }} 85 | 86 |
87 |
88 |
89 |
90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | {{ __('Dashboard') }} 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | {{ __('Repository') }} 112 | 113 | 114 | 115 | {{ __('Documentation') }} 116 | 117 | 118 | 119 | 120 | {{ $slot }} 121 | 122 | @fluxScripts 123 | 124 | 125 | -------------------------------------------------------------------------------- /resources/views/dial.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 50 | 56 |
57 | @endsection 58 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/sidebar.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('partials.head') 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | {{ __('Dashboard') }} 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | {{ __('Repository') }} 25 | 26 | 27 | 28 | {{ __('Documentation') }} 29 | 30 | 31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 |
43 |
44 | 45 | 48 | {{ auth()->user()->initials() }} 49 | 50 | 51 | 52 |
53 | {{ auth()->user()->name }} 54 | {{ auth()->user()->email }} 55 |
56 |
57 |
58 |
59 | 60 | 61 | 62 | 63 | {{ __('Settings') }} 64 | 65 | 66 | 67 | 68 |
69 | @csrf 70 | 71 | {{ __('Log Out') }} 72 | 73 |
74 |
75 |
76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 89 | 90 | 91 | 92 |
93 |
94 | 95 | 98 | {{ auth()->user()->initials() }} 99 | 100 | 101 | 102 |
103 | {{ auth()->user()->name }} 104 | {{ auth()->user()->email }} 105 |
106 |
107 |
108 |
109 | 110 | 111 | 112 | 113 | {{ __('Settings') }} 114 | 115 | 116 | 117 | 118 |
119 | @csrf 120 | 121 | {{ __('Log Out') }} 122 | 123 |
124 |
125 |
126 |
127 | 128 | {{ $slot }} 129 | 130 | @fluxScripts 131 | 132 | 133 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'sqlite'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Database Connections 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Below are all of the database connections defined for your application. 27 | | An example configuration is provided for each database system which 28 | | is supported by Laravel. You're free to add / remove connections. 29 | | 30 | */ 31 | 32 | 'connections' => [ 33 | 34 | 'sqlite' => [ 35 | 'driver' => 'sqlite', 36 | 'url' => env('DB_URL'), 37 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 38 | 'prefix' => '', 39 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 40 | 'busy_timeout' => null, 41 | 'journal_mode' => null, 42 | 'synchronous' => null, 43 | ], 44 | 45 | 'mysql' => [ 46 | 'driver' => 'mysql', 47 | 'url' => env('DB_URL'), 48 | 'host' => env('DB_HOST', '127.0.0.1'), 49 | 'port' => env('DB_PORT', '3306'), 50 | 'database' => env('DB_DATABASE', 'laravel'), 51 | 'username' => env('DB_USERNAME', 'root'), 52 | 'password' => env('DB_PASSWORD', ''), 53 | 'unix_socket' => env('DB_SOCKET', ''), 54 | 'charset' => env('DB_CHARSET', 'utf8mb4'), 55 | 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 56 | 'prefix' => '', 57 | 'prefix_indexes' => true, 58 | 'strict' => true, 59 | 'engine' => null, 60 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 61 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 62 | ]) : [], 63 | ], 64 | 65 | 'mariadb' => [ 66 | 'driver' => 'mariadb', 67 | 'url' => env('DB_URL'), 68 | 'host' => env('DB_HOST', '127.0.0.1'), 69 | 'port' => env('DB_PORT', '3306'), 70 | 'database' => env('DB_DATABASE', 'laravel'), 71 | 'username' => env('DB_USERNAME', 'root'), 72 | 'password' => env('DB_PASSWORD', ''), 73 | 'unix_socket' => env('DB_SOCKET', ''), 74 | 'charset' => env('DB_CHARSET', 'utf8mb4'), 75 | 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 76 | 'prefix' => '', 77 | 'prefix_indexes' => true, 78 | 'strict' => true, 79 | 'engine' => null, 80 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 81 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 82 | ]) : [], 83 | ], 84 | 85 | 'pgsql' => [ 86 | 'driver' => 'pgsql', 87 | 'url' => env('DB_URL'), 88 | 'host' => env('DB_HOST', '127.0.0.1'), 89 | 'port' => env('DB_PORT', '5432'), 90 | 'database' => env('DB_DATABASE', 'laravel'), 91 | 'username' => env('DB_USERNAME', 'root'), 92 | 'password' => env('DB_PASSWORD', ''), 93 | 'charset' => env('DB_CHARSET', 'utf8'), 94 | 'prefix' => '', 95 | 'prefix_indexes' => true, 96 | 'search_path' => 'public', 97 | 'sslmode' => 'prefer', 98 | ], 99 | 100 | 'sqlsrv' => [ 101 | 'driver' => 'sqlsrv', 102 | 'url' => env('DB_URL'), 103 | 'host' => env('DB_HOST', 'localhost'), 104 | 'port' => env('DB_PORT', '1433'), 105 | 'database' => env('DB_DATABASE', 'laravel'), 106 | 'username' => env('DB_USERNAME', 'root'), 107 | 'password' => env('DB_PASSWORD', ''), 108 | 'charset' => env('DB_CHARSET', 'utf8'), 109 | 'prefix' => '', 110 | 'prefix_indexes' => true, 111 | // 'encrypt' => env('DB_ENCRYPT', 'yes'), 112 | // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), 113 | ], 114 | 115 | ], 116 | 117 | /* 118 | |-------------------------------------------------------------------------- 119 | | Migration Repository Table 120 | |-------------------------------------------------------------------------- 121 | | 122 | | This table keeps track of all the migrations that have already run for 123 | | your application. Using this information, we can determine which of 124 | | the migrations on disk haven't actually been run on the database. 125 | | 126 | */ 127 | 128 | 'migrations' => [ 129 | 'table' => 'migrations', 130 | 'update_date_on_publish' => true, 131 | ], 132 | 133 | /* 134 | |-------------------------------------------------------------------------- 135 | | Redis Databases 136 | |-------------------------------------------------------------------------- 137 | | 138 | | Redis is an open source, fast, and advanced key-value store that also 139 | | provides a richer body of commands than a typical key-value system 140 | | such as Memcached. You may define your connection settings here. 141 | | 142 | */ 143 | 144 | 'redis' => [ 145 | 146 | 'client' => env('REDIS_CLIENT', 'phpredis'), 147 | 148 | 'options' => [ 149 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 150 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 151 | 'persistent' => env('REDIS_PERSISTENT', false), 152 | ], 153 | 154 | 'default' => [ 155 | 'url' => env('REDIS_URL'), 156 | 'host' => env('REDIS_HOST', '127.0.0.1'), 157 | 'username' => env('REDIS_USERNAME'), 158 | 'password' => env('REDIS_PASSWORD'), 159 | 'port' => env('REDIS_PORT', '6379'), 160 | 'database' => env('REDIS_DB', '0'), 161 | ], 162 | 163 | 'cache' => [ 164 | 'url' => env('REDIS_URL'), 165 | 'host' => env('REDIS_HOST', '127.0.0.1'), 166 | 'username' => env('REDIS_USERNAME'), 167 | 'password' => env('REDIS_PASSWORD'), 168 | 'port' => env('REDIS_PORT', '6379'), 169 | 'database' => env('REDIS_CACHE_DB', '1'), 170 | ], 171 | 172 | ], 173 | 174 | ]; 175 | -------------------------------------------------------------------------------- /resources/views/dismiss.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | 20 | 35 | 50 | 65 | 80 |
81 | @endsection 82 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'database'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to expire immediately when the browser is closed then you may 31 | | indicate that via the expire_on_close configuration option. 32 | | 33 | */ 34 | 35 | 'lifetime' => (int) env('SESSION_LIFETIME', 120), 36 | 37 | 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), 38 | 39 | /* 40 | |-------------------------------------------------------------------------- 41 | | Session Encryption 42 | |-------------------------------------------------------------------------- 43 | | 44 | | This option allows you to easily specify that all of your session data 45 | | should be encrypted before it's stored. All encryption is performed 46 | | automatically by Laravel and you may use the session like normal. 47 | | 48 | */ 49 | 50 | 'encrypt' => env('SESSION_ENCRYPT', false), 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Session File Location 55 | |-------------------------------------------------------------------------- 56 | | 57 | | When utilizing the "file" session driver, the session files are placed 58 | | on disk. The default storage location is defined here; however, you 59 | | are free to provide another location where they should be stored. 60 | | 61 | */ 62 | 63 | 'files' => storage_path('framework/sessions'), 64 | 65 | /* 66 | |-------------------------------------------------------------------------- 67 | | Session Database Connection 68 | |-------------------------------------------------------------------------- 69 | | 70 | | When using the "database" or "redis" session drivers, you may specify a 71 | | connection that should be used to manage these sessions. This should 72 | | correspond to a connection in your database configuration options. 73 | | 74 | */ 75 | 76 | 'connection' => env('SESSION_CONNECTION'), 77 | 78 | /* 79 | |-------------------------------------------------------------------------- 80 | | Session Database Table 81 | |-------------------------------------------------------------------------- 82 | | 83 | | When using the "database" session driver, you may specify the table to 84 | | be used to store sessions. Of course, a sensible default is defined 85 | | for you; however, you're welcome to change this to another table. 86 | | 87 | */ 88 | 89 | 'table' => env('SESSION_TABLE', 'sessions'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Session Cache Store 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using one of the framework's cache driven session backends, you may 97 | | define the cache store which should be used to store the session data 98 | | between requests. This must match one of your defined cache stores. 99 | | 100 | | Affects: "apc", "dynamodb", "memcached", "redis" 101 | | 102 | */ 103 | 104 | 'store' => env('SESSION_STORE'), 105 | 106 | /* 107 | |-------------------------------------------------------------------------- 108 | | Session Sweeping Lottery 109 | |-------------------------------------------------------------------------- 110 | | 111 | | Some session drivers must manually sweep their storage location to get 112 | | rid of old sessions from storage. Here are the chances that it will 113 | | happen on a given request. By default, the odds are 2 out of 100. 114 | | 115 | */ 116 | 117 | 'lottery' => [2, 100], 118 | 119 | /* 120 | |-------------------------------------------------------------------------- 121 | | Session Cookie Name 122 | |-------------------------------------------------------------------------- 123 | | 124 | | Here you may change the name of the session cookie that is created by 125 | | the framework. Typically, you should not need to change this value 126 | | since doing so does not grant a meaningful security improvement. 127 | | 128 | */ 129 | 130 | 'cookie' => env( 131 | 'SESSION_COOKIE', 132 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 133 | ), 134 | 135 | /* 136 | |-------------------------------------------------------------------------- 137 | | Session Cookie Path 138 | |-------------------------------------------------------------------------- 139 | | 140 | | The session cookie path determines the path for which the cookie will 141 | | be regarded as available. Typically, this will be the root path of 142 | | your application, but you're free to change this when necessary. 143 | | 144 | */ 145 | 146 | 'path' => env('SESSION_PATH', '/'), 147 | 148 | /* 149 | |-------------------------------------------------------------------------- 150 | | Session Cookie Domain 151 | |-------------------------------------------------------------------------- 152 | | 153 | | This value determines the domain and subdomains the session cookie is 154 | | available to. By default, the cookie will be available to the root 155 | | domain and all subdomains. Typically, this shouldn't be changed. 156 | | 157 | */ 158 | 159 | 'domain' => env('SESSION_DOMAIN'), 160 | 161 | /* 162 | |-------------------------------------------------------------------------- 163 | | HTTPS Only Cookies 164 | |-------------------------------------------------------------------------- 165 | | 166 | | By setting this option to true, session cookies will only be sent back 167 | | to the server if the browser has a HTTPS connection. This will keep 168 | | the cookie from being sent to you when it can't be done securely. 169 | | 170 | */ 171 | 172 | 'secure' => env('SESSION_SECURE_COOKIE'), 173 | 174 | /* 175 | |-------------------------------------------------------------------------- 176 | | HTTP Access Only 177 | |-------------------------------------------------------------------------- 178 | | 179 | | Setting this value to true will prevent JavaScript from accessing the 180 | | value of the cookie and the cookie will only be accessible through 181 | | the HTTP protocol. It's unlikely you should disable this option. 182 | | 183 | */ 184 | 185 | 'http_only' => env('SESSION_HTTP_ONLY', true), 186 | 187 | /* 188 | |-------------------------------------------------------------------------- 189 | | Same-Site Cookies 190 | |-------------------------------------------------------------------------- 191 | | 192 | | This option determines how your cookies behave when cross-site requests 193 | | take place, and can be used to mitigate CSRF attacks. By default, we 194 | | will set this value to "lax" to permit secure cross-site requests. 195 | | 196 | | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value 197 | | 198 | | Supported: "lax", "strict", "none", null 199 | | 200 | */ 201 | 202 | 'same_site' => env('SESSION_SAME_SITE', 'lax'), 203 | 204 | /* 205 | |-------------------------------------------------------------------------- 206 | | Partitioned Cookies 207 | |-------------------------------------------------------------------------- 208 | | 209 | | Setting this value to true will tie the cookie to the top-level site for 210 | | a cross-site context. Partitioned cookies are accepted by the browser 211 | | when flagged "secure" and the Same-Site attribute is set to "none". 212 | | 213 | */ 214 | 215 | 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), 216 | 217 | ]; 218 | --------------------------------------------------------------------------------