├── .editorconfig ├── .env.example ├── .gitattributes ├── .github └── workflows │ ├── lint.yml │ └── tests.yml ├── .gitignore ├── .prettierrc ├── README.md ├── app ├── Http │ └── Controllers │ │ ├── Auth │ │ ├── ConfirmationController.php │ │ ├── LoginController.php │ │ ├── NewPasswordController.php │ │ ├── PasswordResetLinkController.php │ │ ├── RegistrationController.php │ │ └── VerificationController.php │ │ ├── Controller.php │ │ └── Settings │ │ ├── AppearanceController.php │ │ ├── PasswordController.php │ │ └── ProfileController.php ├── Models │ └── User.php └── Providers │ └── AppServiceProvider.php ├── artisan ├── bootstrap ├── app.php ├── cache │ └── .gitignore └── providers.php ├── composer.json ├── config ├── app.php ├── auth.php ├── blade-fontawesome.php ├── blade-icons.php ├── cache.php ├── database.php ├── filesystems.php ├── logging.php ├── mail.php ├── queue.php ├── services.php └── session.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 0001_01_01_000000_create_users_table.php │ ├── 0001_01_01_000001_create_cache_table.php │ └── 0001_01_01_000002_create_jobs_table.php └── seeders │ └── DatabaseSeeder.php ├── dist └── laraveldaily-starter-kit-259fc823a112a915c1782f5d10b0e58f454d0fb1-a254e2.zip ├── package-lock.json ├── package.json ├── phpstan.neon ├── phpunit.xml ├── public ├── .htaccess ├── favicon.ico ├── index.php └── robots.txt ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js └── views │ ├── auth │ ├── confirm-password.blade.php │ ├── forgot-password.blade.php │ ├── login.blade.php │ ├── register.blade.php │ ├── reset-password.blade.php │ └── verify-email.blade.php │ ├── components │ ├── button.blade.php │ ├── forms │ │ ├── checkbox.blade.php │ │ └── input.blade.php │ └── layouts │ │ ├── app.blade.php │ │ ├── app │ │ ├── header.blade.php │ │ └── sidebar.blade.php │ │ ├── auth.blade.php │ │ ├── sidebar-link.blade.php │ │ ├── sidebar-three-level-link.blade.php │ │ ├── sidebar-three-level-parent.blade.php │ │ ├── sidebar-two-level-link-parent.blade.php │ │ └── sidebar-two-level-link.blade.php │ ├── dashboard.blade.php │ ├── settings │ ├── appearance.blade.php │ ├── partials │ │ └── navigation.blade.php │ ├── password.blade.php │ └── profile.blade.php │ └── welcome.blade.php ├── routes ├── auth.php ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ ├── private │ │ └── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── Feature │ ├── Auth │ │ ├── AuthenticationTest.php │ │ ├── EmailVerificationTest.php │ │ ├── PasswordConfirmationTest.php │ │ ├── PasswordResetTest.php │ │ └── RegistrationTest.php │ ├── DashboardTest.php │ ├── ExampleTest.php │ └── Settings │ │ ├── PasswordUpdateTest.php │ │ └── ProfileUpdateTest.php ├── Pest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.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 | -------------------------------------------------------------------------------- /.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}" -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | CHANGELOG.md export-ignore 10 | .styleci.yml export-ignore 11 | -------------------------------------------------------------------------------- /.github/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: Install Dependencies 29 | run: | 30 | composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist 31 | npm install 32 | 33 | - name: Run Pint 34 | run: vendor/bin/pint 35 | 36 | - name: Run Prettier 37 | run: npx prettier --write . 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: | 45 | # **/* 46 | # !.github/workflows/* 47 | -------------------------------------------------------------------------------- /.github/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: Install Dependencies 39 | run: composer install --no-interaction --prefer-dist --optimize-autoloader 40 | 41 | - name: Copy Environment File 42 | run: cp .env.example .env 43 | 44 | - name: Generate Application Key 45 | run: php artisan key:generate 46 | 47 | - name: Build Assets 48 | run: npm run build 49 | 50 | - name: Run Tests 51 | run: ./vendor/bin/phpunit 52 | -------------------------------------------------------------------------------- /.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 -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "plugins": ["@shufo/prettier-plugin-blade", "prettier-plugin-tailwindcss"], 4 | "overrides": [ 5 | { 6 | "files": ["*.blade.php"], 7 | "options": { 8 | "parser": "blade", 9 | "tabWidth": 4 10 | } 11 | } 12 | ], 13 | "tailwindStylesheet": "./resources/css/app.css" 14 | } 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Laravel + Blade Starter Kit 2 | 3 | --- 4 | 5 | ## Introduction 6 | 7 | Our Laravel 12 + Blade starter kit provides the typical functionality found in the Laravel Starter kits, but with a few key differences: 8 | 9 | - A CoreUI/AdminLTE inspired design layout 10 | - Blade + AlpineJS code 11 | 12 | This kit aims to fill the gap where there is no simple **Blade only** starter kit available. 13 | 14 | Our internal goal at Laravel Daily is to start using this starter kit for our Demo applications, to avoid overwhelming our audience with Vue/Livewire/React if we had used one of the official Laravel 12 starter kits. 15 | 16 | **Note:** This is Work in Progress kit, so it will get updates and fixes/features as we go. 17 | 18 | --- 19 | 20 | ## Screenshots 21 | 22 | ![](https://laraveldaily.com/uploads/2025/05/LoginPage.png) 23 | 24 | ![](https://laraveldaily.com/uploads/2025/05/RegisterPage.png) 25 | 26 | ![](https://laraveldaily.com/uploads/2025/05/DashboardPage.png) 27 | 28 | ![](https://laraveldaily.com/uploads/2025/05/ProfilePage.png) 29 | 30 | --- 31 | 32 | ## What is Inside? 33 | 34 | Inside you will find all the functions that you would expect: 35 | 36 | - Authentication 37 | - Login 38 | - Registration 39 | - Password Reset Flow 40 | - Email Confirmation Flow 41 | - Dashboard Page 42 | - Profile Settings 43 | - Profile Information Page 44 | - Password Update Page 45 | - Appearance Preferences 46 | 47 | --- 48 | 49 | ## How to use it? 50 | 51 | To use this kit, you can install it using: 52 | 53 | ```bash 54 | laravel new --using=laraveldaily/starter-kit 55 | ``` 56 | 57 | From there, you can modify the kit to your needs. 58 | 59 | --- 60 | 61 | ## Design Elements 62 | 63 | If you want to see examples of what design elements we have, you can [visit the Wiki]() and see the raw HTML files. 64 | 65 | --- 66 | 67 | ## Licence 68 | 69 | Starter kit is open-sourced software licensed under the MIT license. 70 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmationController.php: -------------------------------------------------------------------------------- 1 | validate([ 22 | 'email' => $request->user()->email, 23 | 'password' => $request->password, 24 | ])) { 25 | throw ValidationException::withMessages([ 26 | 'password' => __('auth.password'), 27 | ]); 28 | } 29 | 30 | $request->session()->put('auth.password_confirmed_at', time()); 31 | 32 | return redirect()->intended(route('dashboard', absolute: false)); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | validate([ 25 | 'email' => ['required', 'string', 'email'], 26 | 'password' => ['required', 'string'], 27 | ]); 28 | 29 | $this->ensureIsNotRateLimited($request); 30 | 31 | if (! Auth::attempt($request->only('email', 'password'), $request->boolean('remember'))) { 32 | RateLimiter::hit($this->throttleKey($request)); 33 | 34 | throw ValidationException::withMessages([ 35 | 'email' => trans('auth.failed'), 36 | ]); 37 | } 38 | 39 | RateLimiter::clear($this->throttleKey($request)); 40 | 41 | $request->session()->regenerate(); 42 | 43 | return redirect()->intended(route('dashboard', absolute: false)); 44 | } 45 | 46 | public function destroy(Request $request): RedirectResponse 47 | { 48 | Auth::guard('web')->logout(); 49 | 50 | $request->session()->invalidate(); 51 | 52 | $request->session()->regenerateToken(); 53 | 54 | return redirect('/'); 55 | } 56 | 57 | protected function ensureIsNotRateLimited(Request $request): void 58 | { 59 | if (! RateLimiter::tooManyAttempts($this->throttleKey($request), 5)) { 60 | return; 61 | } 62 | 63 | event(new Lockout($request)); 64 | 65 | $seconds = RateLimiter::availableIn($this->throttleKey($request)); 66 | 67 | throw ValidationException::withMessages([ 68 | 'email' => trans('auth.throttle', [ 69 | 'seconds' => $seconds, 70 | 'minutes' => ceil($seconds / 60), 71 | ]), 72 | ]); 73 | } 74 | 75 | public function throttleKey(Request $request): string 76 | { 77 | return Str::transliterate(Str::lower($request->string('email')).'|'.$request->ip()); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/NewPasswordController.php: -------------------------------------------------------------------------------- 1 | $request]); 21 | } 22 | 23 | public function store(Request $request): RedirectResponse 24 | { 25 | $request->validate([ 26 | 'token' => ['required'], 27 | 'email' => ['required', 'email'], 28 | 'password' => ['required', 'confirmed', Rules\Password::defaults()], 29 | ]); 30 | 31 | // Here we will attempt to reset the user's password. If it is successful we 32 | // will update the password on an actual user model and persist it to the 33 | // database. Otherwise we will parse the error and return the response. 34 | $status = Password::reset( 35 | $request->only('email', 'password', 'password_confirmation', 'token'), 36 | function (User $user) use ($request) { 37 | $user->forceFill([ 38 | 'password' => Hash::make($request->password), 39 | 'remember_token' => Str::random(60), 40 | ])->save(); 41 | 42 | event(new PasswordReset($user)); 43 | } 44 | ); 45 | 46 | // If the password was successfully reset, we will redirect the user back to 47 | // the application's home authenticated view. If there is an error we can 48 | // redirect them back to where they came from with their error message. 49 | return $status == Password::PASSWORD_RESET 50 | ? to_route('login')->with('status', __($status)) 51 | : back()->withInput($request->only('email')) 52 | ->withErrors(['email' => __($status)]); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/PasswordResetLinkController.php: -------------------------------------------------------------------------------- 1 | validate([ 21 | 'email' => ['required', 'email'], 22 | ]); 23 | 24 | Password::sendResetLink($request->only('email')); 25 | 26 | return back()->with('status', __('A reset link will be sent if the account exists.')); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegistrationController.php: -------------------------------------------------------------------------------- 1 | validate([ 25 | 'name' => ['required', 'string', 'max:255'], 26 | 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:'.User::class], 27 | 'password' => ['required', 'confirmed', Rules\Password::defaults()], 28 | ]); 29 | 30 | $validated['password'] = Hash::make($validated['password']); 31 | 32 | event(new Registered(($user = User::create($validated)))); 33 | 34 | Auth::login($user); 35 | 36 | return redirect(route('dashboard', absolute: false)); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | user()->hasVerifiedEmail() 17 | ? redirect()->intended(route('dashboard', absolute: false)) 18 | : view('auth.verify-email'); 19 | } 20 | 21 | public function store(Request $request): RedirectResponse 22 | { 23 | if ($request->user()->hasVerifiedEmail()) { 24 | return redirect()->intended(route('dashboard', absolute: false)); 25 | } 26 | 27 | $request->user()->sendEmailVerificationNotification(); 28 | 29 | return back()->with('status', 'verification-link-sent'); 30 | } 31 | 32 | public function verify(EmailVerificationRequest $request): RedirectResponse 33 | { 34 | if ($request->user()->hasVerifiedEmail()) { 35 | return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); 36 | } 37 | 38 | if ($request->user()->markEmailAsVerified()) { 39 | /** @var \Illuminate\Contracts\Auth\MustVerifyEmail $user */ 40 | $user = $request->user(); 41 | 42 | event(new Verified($user)); 43 | } 44 | 45 | return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | $request->user(), 18 | ]); 19 | } 20 | 21 | public function update(Request $request): RedirectResponse 22 | { 23 | $validated = $request->validate([ 24 | 'current_password' => ['required', 'current_password'], 25 | 'password' => ['required', Rules\Password::defaults(), 'confirmed'], 26 | ]); 27 | 28 | $request->user()->update([ 29 | 'password' => Hash::make($validated['password']), 30 | ]); 31 | 32 | return back()->with('status', 'password-updated'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Controllers/Settings/ProfileController.php: -------------------------------------------------------------------------------- 1 | $request->user(), 19 | ]); 20 | } 21 | 22 | public function update(Request $request): RedirectResponse 23 | { 24 | $user = $request->user(); 25 | 26 | $validated = $request->validate([ 27 | 'name' => ['required', 'string', 'max:255'], 28 | 'email' => [ 29 | 'required', 30 | 'string', 31 | 'lowercase', 32 | 'email', 33 | 'max:255', 34 | Rule::unique(User::class)->ignore($user->id), 35 | ], 36 | ]); 37 | 38 | $user->fill($validated); 39 | 40 | if ($user->isDirty('email')) { 41 | $user->email_verified_at = null; 42 | } 43 | 44 | $user->save(); 45 | 46 | return to_route('settings.profile.edit')->with('status', __('Profile updated successfully')); 47 | } 48 | 49 | public function destroy(Request $request): RedirectResponse 50 | { 51 | $user = $request->user(); 52 | 53 | Auth::logout(); 54 | 55 | $user->delete(); 56 | 57 | $request->session()->invalidate(); 58 | $request->session()->regenerateToken(); 59 | 60 | return to_route('home'); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | handleCommand(new ArgvInput); 17 | 18 | exit($status); 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /bootstrap/providers.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/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 | -------------------------------------------------------------------------------- /config/blade-fontawesome.php: -------------------------------------------------------------------------------- 1 | [ 6 | 7 | 'prefix' => 'fab', 8 | 9 | 'fallback' => '', 10 | 11 | 'class' => '', 12 | 13 | 'attributes' => [ 14 | // 'width' => 50, 15 | // 'height' => 50, 16 | ], 17 | 18 | ], 19 | 20 | 'regular' => [ 21 | 22 | 'prefix' => 'far', 23 | 24 | 'fallback' => '', 25 | 26 | 'class' => '', 27 | 28 | 'attributes' => [ 29 | // 'width' => 50, 30 | // 'height' => 50, 31 | ], 32 | 33 | ], 34 | 35 | 'solid' => [ 36 | 37 | 'prefix' => 'fas', 38 | 39 | 'fallback' => '', 40 | 41 | 'class' => '', 42 | 43 | 'attributes' => [ 44 | // 'width' => 50, 45 | // 'height' => 50, 46 | ], 47 | 48 | ], 49 | 50 | /* 51 | |----------------------------------------------------------------- 52 | | Pro Icon Sets 53 | |----------------------------------------------------------------- 54 | | 55 | | The following configuration values are for configuring the 56 | | icon sets available as part of Font Awesome Pro. 57 | | 58 | | If you are not using Font Awesome Pro, this can be removed. 59 | | 60 | */ 61 | 62 | 'duotone' => [ 63 | 64 | 'prefix' => 'fad', 65 | 66 | 'fallback' => '', 67 | 68 | 'class' => '', 69 | 70 | 'attributes' => [ 71 | // 'width' => 50, 72 | // 'height' => 50, 73 | ], 74 | 75 | ], 76 | 77 | 'light' => [ 78 | 79 | 'prefix' => 'fal', 80 | 81 | 'fallback' => '', 82 | 83 | 'class' => '', 84 | 85 | 'attributes' => [ 86 | // 'width' => 50, 87 | // 'height' => 50, 88 | ], 89 | 90 | ], 91 | 92 | 'thin' => [ 93 | 94 | 'prefix' => 'fat', 95 | 96 | 'fallback' => '', 97 | 98 | 'class' => '', 99 | 100 | 'attributes' => [ 101 | // 'width' => 50, 102 | // 'height' => 50, 103 | ], 104 | 105 | ], 106 | 107 | 'sharp-light' => [ 108 | 109 | 'prefix' => 'fal:sharp', 110 | 111 | 'fallback' => '', 112 | 113 | 'class' => '', 114 | 115 | 'attributes' => [ 116 | // 'width' => 50, 117 | // 'height' => 50, 118 | ], 119 | 120 | ], 121 | 122 | 'sharp-regular' => [ 123 | 124 | 'prefix' => 'far:sharp', 125 | 126 | 'fallback' => '', 127 | 128 | 'class' => '', 129 | 130 | 'attributes' => [ 131 | // 'width' => 50, 132 | // 'height' => 50, 133 | ], 134 | 135 | ], 136 | 137 | 'sharp-solid' => [ 138 | 139 | 'prefix' => 'fas:sharp', 140 | 141 | 'fallback' => '', 142 | 143 | 'class' => '', 144 | 145 | 'attributes' => [ 146 | // 'width' => 50, 147 | // 'height' => 50, 148 | ], 149 | 150 | ], 151 | 152 | 'sharp-duotone-solid' => [ 153 | 154 | 'prefix' => 'fad:sharp', 155 | 156 | 'fallback' => '', 157 | 158 | 'class' => '', 159 | 160 | 'attributes' => [ 161 | // 'width' => 50, 162 | // 'height' => 50, 163 | ], 164 | 165 | ], 166 | 167 | 'sharp-thin' => [ 168 | 169 | 'prefix' => 'fat:sharp', 170 | 171 | 'fallback' => '', 172 | 173 | 'class' => '', 174 | 175 | 'attributes' => [ 176 | // 'width' => 50, 177 | // 'height' => 50, 178 | ], 179 | 180 | ], 181 | 182 | /* 183 | |----------------------------------------------------------------- 184 | | Pro Icon Kits 185 | |----------------------------------------------------------------- 186 | | 187 | | The following configuration values are for configuring the 188 | | icon sets available as part of Font Awesome Pro. 189 | | 190 | | If you are not using Font Awesome Pro, this can be removed. 191 | | 192 | */ 193 | 194 | 'custom' => [ 195 | 196 | 'prefix' => 'fak', 197 | 198 | 'fallback' => '', 199 | 200 | 'class' => '', 201 | 202 | 'attributes' => [ 203 | // 'width' => 50, 204 | // 'height' => 50, 205 | ], 206 | 207 | ], 208 | 209 | ]; 210 | -------------------------------------------------------------------------------- /config/blade-icons.php: -------------------------------------------------------------------------------- 1 | [ 17 | 18 | // 'default' => [ 19 | // 20 | // /* 21 | // |----------------------------------------------------------------- 22 | // | Icons Path 23 | // |----------------------------------------------------------------- 24 | // | 25 | // | Provide the relative path from your app root to your SVG icons 26 | // | directory. Icons are loaded recursively so there's no need to 27 | // | list every sub-directory. 28 | // | 29 | // | Relative to the disk root when the disk option is set. 30 | // | 31 | // */ 32 | // 33 | // 'path' => 'resources/svg', 34 | // 35 | // /* 36 | // |----------------------------------------------------------------- 37 | // | Filesystem Disk 38 | // |----------------------------------------------------------------- 39 | // | 40 | // | Optionally, provide a specific filesystem disk to read 41 | // | icons from. When defining a disk, the "path" option 42 | // | starts relatively from the disk root. 43 | // | 44 | // */ 45 | // 46 | // 'disk' => '', 47 | // 48 | // /* 49 | // |----------------------------------------------------------------- 50 | // | Default Prefix 51 | // |----------------------------------------------------------------- 52 | // | 53 | // | This config option allows you to define a default prefix for 54 | // | your icons. The dash separator will be applied automatically 55 | // | to every icon name. It's required and needs to be unique. 56 | // | 57 | // */ 58 | // 59 | // 'prefix' => 'icon', 60 | // 61 | // /* 62 | // |----------------------------------------------------------------- 63 | // | Fallback Icon 64 | // |----------------------------------------------------------------- 65 | // | 66 | // | This config option allows you to define a fallback 67 | // | icon when an icon in this set cannot be found. 68 | // | 69 | // */ 70 | // 71 | // 'fallback' => '', 72 | // 73 | // /* 74 | // |----------------------------------------------------------------- 75 | // | Default Set Classes 76 | // |----------------------------------------------------------------- 77 | // | 78 | // | This config option allows you to define some classes which 79 | // | will be applied by default to all icons within this set. 80 | // | 81 | // */ 82 | // 83 | // 'class' => '', 84 | // 85 | // /* 86 | // |----------------------------------------------------------------- 87 | // | Default Set Attributes 88 | // |----------------------------------------------------------------- 89 | // | 90 | // | This config option allows you to define some attributes which 91 | // | will be applied by default to all icons within this set. 92 | // | 93 | // */ 94 | // 95 | // 'attributes' => [ 96 | // // 'width' => 50, 97 | // // 'height' => 50, 98 | // ], 99 | // 100 | // ], 101 | 102 | ], 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Global Default Classes 107 | |-------------------------------------------------------------------------- 108 | | 109 | | This config option allows you to define some classes which 110 | | will be applied by default to all icons. 111 | | 112 | */ 113 | 114 | 'class' => '', 115 | 116 | /* 117 | |-------------------------------------------------------------------------- 118 | | Global Default Attributes 119 | |-------------------------------------------------------------------------- 120 | | 121 | | This config option allows you to define some attributes which 122 | | will be applied by default to all icons. 123 | | 124 | */ 125 | 126 | 'attributes' => [ 127 | // 'width' => 50, 128 | // 'height' => 50, 129 | ], 130 | 131 | /* 132 | |-------------------------------------------------------------------------- 133 | | Global Fallback Icon 134 | |-------------------------------------------------------------------------- 135 | | 136 | | This config option allows you to define a global fallback 137 | | icon when an icon in any set cannot be found. It can 138 | | reference any icon from any configured set. 139 | | 140 | */ 141 | 142 | 'fallback' => '', 143 | 144 | /* 145 | |-------------------------------------------------------------------------- 146 | | Components 147 | |-------------------------------------------------------------------------- 148 | | 149 | | These config options allow you to define some 150 | | settings related to Blade Components. 151 | | 152 | */ 153 | 154 | 'components' => [ 155 | 156 | /* 157 | |---------------------------------------------------------------------- 158 | | Disable Components 159 | |---------------------------------------------------------------------- 160 | | 161 | | This config option allows you to disable Blade components 162 | | completely. It's useful to avoid performance problems 163 | | when working with large icon libraries. 164 | | 165 | */ 166 | 167 | 'disabled' => false, 168 | 169 | /* 170 | |---------------------------------------------------------------------- 171 | | Default Icon Component Name 172 | |---------------------------------------------------------------------- 173 | | 174 | | This config option allows you to define the name 175 | | for the default Icon class component. 176 | | 177 | */ 178 | 179 | 'default' => 'icon', 180 | 181 | ], 182 | 183 | ]; 184 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | 'handler_with' => [ 102 | 'stream' => 'php://stderr', 103 | ], 104 | 'formatter' => env('LOG_STDERR_FORMATTER'), 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 | -------------------------------------------------------------------------------- /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 | 'retry_after' => 60, 89 | ], 90 | 91 | 'roundrobin' => [ 92 | 'transport' => 'roundrobin', 93 | 'mailers' => [ 94 | 'ses', 95 | 'postmark', 96 | ], 97 | 'retry_after' => 60, 98 | ], 99 | 100 | ], 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Global "From" Address 105 | |-------------------------------------------------------------------------- 106 | | 107 | | You may wish for all emails sent by your application to be sent from 108 | | the same address. Here you may specify a name and address that is 109 | | used globally for all emails that are sent by your application. 110 | | 111 | */ 112 | 113 | 'from' => [ 114 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 115 | 'name' => env('MAIL_FROM_NAME', 'Example'), 116 | ], 117 | 118 | ]; 119 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | 18 | User::factory()->create([ 19 | 'name' => 'Test User', 20 | 'email' => 'test@example.com', 21 | ]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dist/laraveldaily-starter-kit-259fc823a112a915c1782f5d10b0e58f454d0fb1-a254e2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaravelDaily/starter-kit/15d90e801807f8ff9fc50fd470ec97c44b32c9c9/dist/laraveldaily-starter-kit-259fc823a112a915c1782f5d10b0e58f454d0fb1-a254e2.zip -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "build": "vite build", 6 | "dev": "vite" 7 | }, 8 | "devDependencies": { 9 | "@shufo/prettier-plugin-blade": "^1.15.3", 10 | "@tailwindcss/vite": "^4.1.7", 11 | "axios": "^1.8.2", 12 | "concurrently": "^9.0.1", 13 | "laravel-vite-plugin": "^1.2.0", 14 | "prettier": "^3.5.3", 15 | "prettier-plugin-tailwindcss": "^0.6.11", 16 | "tailwindcss": "^4.1.7", 17 | "vite": "^6.2.4" 18 | }, 19 | "dependencies": { 20 | "alpinejs": "^3.14.9" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- 1 | includes: 2 | - vendor/larastan/larastan/extension.neon 3 | - vendor/nesbot/carbon/extension.neon 4 | 5 | parameters: 6 | 7 | paths: 8 | - app/ 9 | 10 | # Level 10 is the highest level 11 | level: 7 12 | 13 | # ignoreErrors: 14 | # - '#PHPDoc tag @var#' 15 | # 16 | # excludePaths: 17 | # - ./*/*/FileToBeExcluded.php -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LaravelDaily/starter-kit/15d90e801807f8ff9fc50fd470ec97c44b32c9c9/public/favicon.ico -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | handleRequest(Request::capture()); 21 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 1 | @import "tailwindcss"; 2 | 3 | @source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; 4 | @source '../../storage/framework/views/*.php'; 5 | @source '../**/*.blade.php'; 6 | @source '../**/*.js'; 7 | 8 | @theme { 9 | --font-sans: 10 | "Instrument Sans", ui-sans-serif, system-ui, sans-serif, 11 | "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", 12 | "Noto Color Emoji"; 13 | --sidebar-background: hsl(var(--sidebar-background)); 14 | --sidebar-foreground: hsl(var(--sidebar-foreground)); 15 | --sidebar-accent: hsl(var(--sidebar-accent)); 16 | --sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground)); 17 | --sidebar-border: hsl(var(--sidebar-border)); 18 | --sidebar-ring: hsl(var(--sidebar-ring)); 19 | } 20 | 21 | @custom-variant dark (&:where(.dark, .dark *)); 22 | 23 | @layer components { 24 | .bg-sidebar { 25 | background-color: hsl(var(--sidebar-background)); 26 | } 27 | 28 | .bg-sidebar-accent { 29 | background-color: hsl(var(--sidebar-accent)); 30 | } 31 | 32 | .text-sidebar-accent-foreground { 33 | color: hsl(var(--sidebar-accent-foreground)); 34 | } 35 | 36 | .hover\:bg-sidebar-accent:hover { 37 | background-color: hsl(var(--sidebar-accent)); 38 | } 39 | 40 | .hover\:text-sidebar-accent-foreground:hover { 41 | color: hsl(var(--sidebar-accent-foreground)); 42 | } 43 | } 44 | 45 | @layer base { 46 | :root { 47 | --sidebar-background: 210 20% 98%; 48 | --sidebar-foreground: 215 25% 27%; 49 | --sidebar-accent: 217 33% 17%; 50 | --sidebar-accent-foreground: 210 40% 98%; 51 | --sidebar-border: 214 32% 91%; 52 | --sidebar-ring: 221 83% 53%; 53 | } 54 | 55 | .dark { 56 | --sidebar-background: 217 33% 17%; 57 | --sidebar-foreground: 210 40% 98%; 58 | --sidebar-accent: 210 40% 96%; 59 | --sidebar-accent-foreground: 217 33% 17%; 60 | --sidebar-border: 215 25% 27%; 61 | --sidebar-ring: 221 83% 65%; 62 | } 63 | } 64 | 65 | /* Custom scrollbar */ 66 | .custom-scrollbar::-webkit-scrollbar { 67 | width: 6px; 68 | } 69 | 70 | .custom-scrollbar::-webkit-scrollbar-track { 71 | background: transparent; 72 | } 73 | 74 | .custom-scrollbar::-webkit-scrollbar-thumb { 75 | background-color: rgba(156, 163, 175, 0.5); 76 | border-radius: 3px; 77 | } 78 | 79 | /* Sidebar width transitions */ 80 | .sidebar-transition { 81 | transition: 82 | width 0.3s ease, 83 | transform 0.3s ease, 84 | margin-left 0.3s ease, 85 | display 0.3s ease; 86 | } 87 | 88 | .content-transition { 89 | transition: 90 | margin-left 0.3s ease, 91 | width 0.3s ease; 92 | } 93 | 94 | /* Custom file input */ 95 | .custom-file-input::-webkit-file-upload-button { 96 | visibility: hidden; 97 | } 98 | 99 | .custom-file-input::before { 100 | content: "Select files"; 101 | display: inline-block; 102 | background: #f9fafb; 103 | border: 1px solid #d1d5db; 104 | border-radius: 0.375rem; 105 | padding: 0.375rem 0.75rem; 106 | outline: none; 107 | white-space: nowrap; 108 | cursor: pointer; 109 | font-size: 0.875rem; 110 | font-weight: 500; 111 | color: #374151; 112 | } 113 | 114 | .dark .custom-file-input::before { 115 | background: #374151; 116 | border-color: #4b5563; 117 | color: #e5e7eb; 118 | } 119 | 120 | .custom-file-input:hover::before { 121 | border-color: #9ca3af; 122 | } 123 | 124 | .custom-file-input:active::before { 125 | background: #e5e7eb; 126 | } 127 | 128 | .dark .custom-file-input:active::before { 129 | background: #4b5563; 130 | } 131 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import "./bootstrap"; 2 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | import Alpine from "alpinejs"; 3 | window.axios = axios; 4 | 5 | window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest"; 6 | 7 | window.Alpine = Alpine; 8 | 9 | Alpine.start(); 10 | -------------------------------------------------------------------------------- /resources/views/auth/confirm-password.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
5 |
6 |
7 |

{{ __('Confirm Password') }}

8 |

9 | {{ __('Please confirm your password before continuing.') }} 10 |

11 |
12 | 13 |
14 | @csrf 15 | 16 |
17 | 18 |
19 | 20 | 21 | 22 | {{ __('Confirm Password') }} 23 | 24 |
25 | 26 | 27 | 31 |
32 |
33 |
34 | -------------------------------------------------------------------------------- /resources/views/auth/forgot-password.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
5 |
6 |
7 |

{{ __('Forgot Password') }}

8 |

9 | {{ __('Enter your email to receive a password reset link') }}

10 |
11 | 12 | @if (session('status')) 13 |
14 | {{ session('status') }} 15 |
16 | @endif 17 | 18 |
19 | @csrf 20 | 21 |
22 | 23 |
24 | 25 | 26 | 27 | {{ __('Send Password Reset Link') }} 28 | 29 |
30 | 31 | 32 | 36 |
37 |
38 |
39 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
5 |
6 |
7 |

{{ __('Login') }}

8 |

Sign in to your account

9 |
10 | 11 |
12 | @csrf 13 | 14 |
15 | 16 |
17 | 18 | 19 |
20 | 21 | @if (Route::has('password.request')) 22 | {{ __('Forgot password?') }} 24 | @endif 25 |
26 | 27 | 28 |
29 | 30 |
31 | 32 | 33 | {{ __('Sign In') }} 34 |
35 | 36 | @if (Route::has('register')) 37 | 38 |
39 |

40 | {{ __('Don\'t have an account?') }} 41 | {{ __('Sign up') }} 43 |

44 |
45 | @endif 46 |
47 |
48 |
49 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
4 |
5 |
6 |

{{ __('Register') }}

7 |

8 | {{ __('Enter your details below to create your account') }} 9 |

10 |
11 | 12 |
13 | @csrf 14 | 15 |
16 | 17 |
18 | 19 | 20 |
21 | 22 |
23 | 24 | 25 |
26 | 27 |
28 | 29 | 30 |
31 | 33 |
34 | 35 | 36 | {{ __('Create Account') }} 37 |
38 | 39 | 40 |
41 |

42 | Already have an account? 43 | {{ __('Sign in') }} 45 |

46 |
47 |
48 |
49 |
50 | -------------------------------------------------------------------------------- /resources/views/auth/reset-password.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
5 |
6 |
7 |

{{ __('Reset Password') }}

8 |

{{ __('Enter your email and new password below.') }} 9 |

10 |
11 | 12 |
13 | @csrf 14 | 15 | 16 | 17 |
18 | 20 |
21 | 22 | 23 |
24 | 25 |
26 | 27 | 28 |
29 | 31 |
32 | 33 | 34 | 35 | {{ __('Reset Password') }} 36 | 37 |
38 | 39 | 40 | 44 |
45 |
46 |
47 | -------------------------------------------------------------------------------- /resources/views/auth/verify-email.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
5 |
6 |
7 |

{{ __('Verify Your Email Address') }} 8 |

9 |

10 | {{ __('Before proceeding, please check your email for a verification link.') }}
11 | {{ __('If you did not receive the email, you can request another below.') }} 12 |

13 |
14 | 15 | @if (session('status') === 'verification-link-sent') 16 |
17 | {{ __('A new verification link has been sent to your email address.') }} 18 |
19 | @endif 20 | 21 |
22 | @csrf 23 | 24 | {{ __('Resend Verification Email') }} 25 | 26 |
27 | 28 |
29 |
30 | @csrf 31 | 34 |
35 |
36 |
37 |
38 |
39 | -------------------------------------------------------------------------------- /resources/views/components/button.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'type' => 'primary', 3 | 'buttonType' => 'submit', 4 | 'tag' => 'button', 5 | ]) 6 | 7 | @php 8 | $styleClasses = \Illuminate\Support\Arr::toCssClasses([ 9 | 'text-white font-medium py-2 px-4 rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors flex items-center justify-center', 10 | match ($type) { 11 | 'primary' => 'bg-blue-600 hover:bg-blue-700 focus:ring-blue-500', 12 | 'danger' => 'bg-red-600 hover:bg-red-700 focus:ring-red-500', 13 | }, 14 | ]); 15 | @endphp 16 | 17 | <{{ $tag }} {{ $attributes->merge(['class' => $styleClasses]) }}> 18 | {{ $slot }} 19 | 20 | -------------------------------------------------------------------------------- /resources/views/components/forms/checkbox.blade.php: -------------------------------------------------------------------------------- 1 | @props(['label', 'name', 'value' => null]) 2 | 3 | 10 | 11 | @error($name) 12 | {{ $message }} 13 | @enderror 14 | -------------------------------------------------------------------------------- /resources/views/components/forms/input.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'label', 3 | 'name', 4 | 'type' => 'text', 5 | 'placeholder' => '', 6 | 'error' => false, 7 | 'class' => '', 8 | 'labelClass' => '', 9 | ]) 10 | 11 | @if ($label) 12 | 16 | @endif 17 | 18 | merge(['class' => 'w-full px-4 py-2 rounded-lg text-gray-700 dark:text-gray-300 bg-gray-50 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent']) }}> 20 | 21 | @error($name) 22 | {{ $message }} 23 | @enderror 24 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{ config('app.name') }} 8 | 36 | 37 | @vite(['resources/css/app.css', 'resources/js/app.js']) 38 | 39 | 40 | 54 | 55 | 56 |
57 | 58 | 59 | 60 | 61 |
62 | 63 | 64 | 65 | 66 |
67 |
68 | 69 | @session('status') 70 |
78 |
79 |
80 | 82 | 85 | 86 |
87 |
88 |

{{ session('status') }}

89 |
90 |
91 |
92 | 102 |
103 |
104 |
105 |
106 | @endsession 107 | 108 | {{ $slot }} 109 | 110 |
111 |
112 |
113 |
114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/header.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 |
6 | 13 |
{{ config('app.name') }}
14 |
15 | 16 | 17 |
18 | 19 |
20 | 33 | 34 | 65 |
66 |
67 |
68 |
69 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/sidebar.blade.php: -------------------------------------------------------------------------------- 1 | 36 | -------------------------------------------------------------------------------- /resources/views/components/layouts/auth.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Login - {{ config('app.name') }} 8 | @vite('resources/css/app.css') 9 | 28 | 29 | 30 | 38 | 39 |
40 | 41 |
42 |
43 | {{ $slot }} 44 |
45 |
46 |
47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /resources/views/components/layouts/sidebar-link.blade.php: -------------------------------------------------------------------------------- 1 | @props(['active' => false, 'href' => '#', 'icon' => null]) 2 |
  • 3 | $active, 6 | 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground text-sidebar-foreground' => !$active, 7 | ])> 8 | @svg($icon, $active ? 'w-5 h-5 text-white' : 'w-5 h-5 text-gray-500') 9 | {{ $slot }} 14 | 15 |
  • 16 | -------------------------------------------------------------------------------- /resources/views/components/layouts/sidebar-three-level-link.blade.php: -------------------------------------------------------------------------------- 1 | @props(['active' => false, 'href' => '#']) 2 | 3 | $active, 6 | 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground text-sidebar-foreground' => !$active, 7 | ])> 8 | {{ $slot }} 9 | 10 | -------------------------------------------------------------------------------- /resources/views/components/layouts/sidebar-three-level-parent.blade.php: -------------------------------------------------------------------------------- 1 | @props(['active' => false, 'title' => '', 'icon' => 'fas-list']) 2 | 3 |
    4 | 27 | 28 | 29 |
    30 | {{ $slot }} 31 |
    32 |
    33 | -------------------------------------------------------------------------------- /resources/views/components/layouts/sidebar-two-level-link-parent.blade.php: -------------------------------------------------------------------------------- 1 | @props(['active' => false, 'title' => '', 'icon' => 'fas-list']) 2 | 3 |
  • 4 | 27 | 28 | 29 |
    30 | {{ $slot }} 31 |
    32 |
  • 33 | -------------------------------------------------------------------------------- /resources/views/components/layouts/sidebar-two-level-link.blade.php: -------------------------------------------------------------------------------- 1 | @props(['active' => false, 'href' => '#', 'icon' => 'fas-house']) 2 | 3 | $active, 6 | 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground text-sidebar-foreground' => !$active, 7 | ])> 8 |
    9 | @svg($icon, $active ? 'w-5 h-5 mr-3 text-white' : 'w-5 h-5 mr-3 text-gray-500') 10 | {{ $slot }} 11 |
    12 |
    13 | -------------------------------------------------------------------------------- /resources/views/dashboard.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |

    {{ __('Dashboard')}}

    5 |

    {{ __('Welcome to the dashboard') }}

    6 |
    7 | 8 |
    9 |
    10 |
    11 |
    12 |

    {{ __('Total Users') }}

    13 |

    --

    14 |

    15 | 17 | 19 | 20 | {{ __('No data') }} 21 |

    22 |
    23 |
    24 | 26 | 28 | 29 |
    30 |
    31 |
    32 | 33 | 34 |
    35 |
    36 |
    37 |

    {{ __('Total Revenue') }}

    38 |

    --

    39 |

    40 | 42 | 44 | 45 | {{ __('No data') }} 46 |

    47 |
    48 |
    49 | 51 | 53 | 54 |
    55 |
    56 |
    57 | 58 | 59 |
    60 |
    61 |
    62 |

    {{ __('Total Orders') }}

    63 |

    --

    64 |

    65 | 67 | 69 | 70 | {{ __('No data') }} 71 |

    72 |
    73 |
    74 | 76 | 78 | 79 |
    80 |
    81 |
    82 | 83 | 84 |
    85 |
    86 |
    87 |

    {{ __('Total Visitors') }}

    88 |

    --

    89 |

    90 | 92 | 94 | 95 | {{ __('No data') }} 96 |

    97 |
    98 |
    99 | 101 | 103 | 105 | 106 |
    107 |
    108 |
    109 |
    110 | 111 |
    112 | -------------------------------------------------------------------------------- /resources/views/settings/appearance.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | {{ __('Dashboard') }} 6 | 8 | 9 | 10 | {{ __('Profile') }} 12 | 14 | 15 | 16 | {{ __('Appearance') }} 17 |
    18 | 19 | 20 |
    21 |

    {{ __('Appearance') }}

    22 |

    23 | {{ __('Update the appearance settings for your account') }} 24 |

    25 |
    26 | 27 |
    28 |
    29 | 30 | @include('settings.partials.navigation') 31 | 32 | 33 |
    34 |
    36 |
    37 | 38 |
    39 | 41 |
    42 | 46 | 50 | 54 |
    55 |
    56 |
    57 |
    58 |
    59 |
    60 |
    61 |
    62 | -------------------------------------------------------------------------------- /resources/views/settings/partials/navigation.blade.php: -------------------------------------------------------------------------------- 1 | 37 | -------------------------------------------------------------------------------- /resources/views/settings/password.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | {{ __('Dashboard') }} 6 | 8 | 9 | 10 | {{ __('Profile') }} 12 | 14 | 15 | 16 | {{ __('Password') }} 17 |
    18 | 19 | 20 |
    21 |

    {{ __('Update password') }}

    22 |

    23 | {{ __('Ensure your account is using a long, random password to stay secure') }} 24 |

    25 |
    26 | 27 |
    28 |
    29 | 30 | @include('settings.partials.navigation') 31 | 32 | 33 |
    34 |
    36 |
    37 | 38 |
    39 | @csrf 40 | @method('PUT') 41 |
    42 | 43 |
    44 | 45 |
    46 | 47 |
    48 | 49 |
    50 | 51 |
    52 | 53 |
    54 | {{ __('Update Password') }} 55 |
    56 |
    57 |
    58 |
    59 |
    60 |
    61 |
    62 |
    63 | -------------------------------------------------------------------------------- /resources/views/settings/profile.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | {{ __('Dashboard') }} 6 | 8 | 9 | 10 | {{ __('Profile') }} 12 | 14 | 15 | 16 | {{ __('Profile') }} 17 |
    18 | 19 | 20 |
    21 |

    {{ __('Profile') }}

    22 |

    {{ __('Update your name and email address') }}

    23 |
    24 | 25 |
    26 |
    27 | 28 | @include('settings.partials.navigation') 29 | 30 | 31 |
    32 |
    34 |
    35 | 36 |
    37 | @csrf 38 | @method('PUT') 39 |
    40 | 42 |
    43 | 44 |
    45 | 47 |
    48 | 49 |
    50 | {{ __('Save') }} 51 |
    52 |
    53 | 54 | 55 |
    56 |

    57 | {{ __('Delete account') }} 58 |

    59 |

    60 | {{ __('Delete your account and all of its resources') }} 61 |

    62 |
    64 | @csrf 65 | @method('DELETE') 66 | {{ __('Delete account') }} 67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 |
    74 |
    75 | -------------------------------------------------------------------------------- /routes/auth.php: -------------------------------------------------------------------------------- 1 | group(function () { 12 | Route::get('register', [RegistrationController::class, 'create'])->name('register'); 13 | Route::post('register', [RegistrationController::class, 'store']); 14 | 15 | Route::get('login', [LoginController::class, 'create'])->name('login'); 16 | Route::post('login', [LoginController::class, 'store']); 17 | 18 | Route::get('forgot-password', [PasswordResetLinkController::class, 'create'])->name('password.request'); 19 | Route::post('forgot-password', [PasswordResetLinkController::class, 'store'])->name('password.email'); 20 | 21 | Route::get('reset-password/{token}', [NewPasswordController::class, 'create'])->name('password.reset'); 22 | Route::post('reset-password', [NewPasswordController::class, 'store'])->name('password.store'); 23 | }); 24 | 25 | Route::middleware('auth')->group(function () { 26 | Route::get('verify-email', [VerificationController::class, 'notice'])->name('verification.notice'); 27 | Route::post('verify-email', [VerificationController::class, 'store'])->middleware('throttle:6,1')->name('verification.store'); 28 | Route::get('verify-email/{id}/{hash}', [VerificationController::class, 'verify'])->middleware(['signed', 'throttle:6,1'])->name('verification.verify'); 29 | 30 | Route::get('confirm-password', [ConfirmationController::class, 'create'])->name('password.confirm'); 31 | Route::post('confirm-password', [ConfirmationController::class, 'store'])->name('confirmation.store'); 32 | }); 33 | 34 | Route::post('logout', [LoginController::class, 'destroy'])->name('logout'); 35 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 8 | })->purpose('Display an inspiring quote'); 9 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('home'); 9 | 10 | Route::view('dashboard', 'dashboard') 11 | ->middleware(['auth', 'verified']) 12 | ->name('dashboard'); 13 | 14 | Route::middleware(['auth'])->group(function () { 15 | Route::get('settings/profile', [Settings\ProfileController::class, 'edit'])->name('settings.profile.edit'); 16 | Route::put('settings/profile', [Settings\ProfileController::class, 'update'])->name('settings.profile.update'); 17 | Route::delete('settings/profile', [Settings\ProfileController::class, 'destroy'])->name('settings.profile.destroy'); 18 | Route::get('settings/password', [Settings\PasswordController::class, 'edit'])->name('settings.password.edit'); 19 | Route::put('settings/password', [Settings\PasswordController::class, 'update'])->name('settings.password.update'); 20 | Route::get('settings/appearance', [Settings\AppearanceController::class, 'edit'])->name('settings.appearance.edit'); 21 | }); 22 | 23 | require __DIR__.'/auth.php'; 24 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !private/ 3 | !public/ 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /storage/app/private/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/Feature/Auth/AuthenticationTest.php: -------------------------------------------------------------------------------- 1 | get('/login'); 16 | 17 | $response->assertStatus(200); 18 | } 19 | 20 | public function test_users_can_authenticate_using_the_login_screen(): void 21 | { 22 | $user = User::factory()->create(); 23 | 24 | $response = $this->post('/login', [ 25 | 'email' => $user->email, 26 | 'password' => 'password', 27 | ]); 28 | 29 | $this->assertAuthenticated(); 30 | $response->assertRedirect(route('dashboard', absolute: false)); 31 | } 32 | 33 | public function test_users_can_not_authenticate_with_invalid_password(): void 34 | { 35 | $user = User::factory()->create(); 36 | 37 | $this->post('/login', [ 38 | 'email' => $user->email, 39 | 'password' => 'wrong-password', 40 | ]); 41 | 42 | $this->assertGuest(); 43 | } 44 | 45 | public function test_users_can_logout(): void 46 | { 47 | $user = User::factory()->create(); 48 | 49 | $response = $this->actingAs($user)->post('/logout'); 50 | 51 | $this->assertGuest(); 52 | $response->assertRedirect('/'); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/Feature/Auth/PasswordConfirmationTest.php: -------------------------------------------------------------------------------- 1 | create(); 16 | 17 | $response = $this->actingAs($user)->get('/confirm-password'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | 22 | public function test_password_can_be_confirmed(): void 23 | { 24 | $user = User::factory()->create(); 25 | 26 | $response = $this->actingAs($user)->post('/confirm-password', [ 27 | 'password' => 'password', 28 | ]); 29 | 30 | $response->assertRedirect(); 31 | $response->assertSessionHasNoErrors(); 32 | } 33 | 34 | public function test_password_is_not_confirmed_with_invalid_password(): void 35 | { 36 | $user = User::factory()->create(); 37 | 38 | $response = $this->actingAs($user)->post('/confirm-password', [ 39 | 'password' => 'wrong-password', 40 | ]); 41 | 42 | $response->assertSessionHasErrors(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tests/Feature/Auth/PasswordResetTest.php: -------------------------------------------------------------------------------- 1 | get('/forgot-password'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | 22 | public function test_reset_password_link_can_be_requested(): void 23 | { 24 | Notification::fake(); 25 | 26 | $user = User::factory()->create(); 27 | 28 | $this->post('/forgot-password', ['email' => $user->email]); 29 | 30 | Notification::assertSentTo($user, ResetPassword::class); 31 | } 32 | 33 | public function test_reset_password_screen_can_be_rendered(): void 34 | { 35 | Notification::fake(); 36 | 37 | $user = User::factory()->create(); 38 | 39 | $this->post('/forgot-password', ['email' => $user->email]); 40 | 41 | Notification::assertSentTo($user, ResetPassword::class, function ($notification) { 42 | $response = $this->get('/reset-password/'.$notification->token); 43 | 44 | $response->assertStatus(200); 45 | 46 | return true; 47 | }); 48 | } 49 | 50 | public function test_password_can_be_reset_with_valid_token(): void 51 | { 52 | Notification::fake(); 53 | 54 | $user = User::factory()->create(); 55 | 56 | $this->post('/forgot-password', ['email' => $user->email]); 57 | 58 | Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) { 59 | $response = $this->post('/reset-password', [ 60 | 'token' => $notification->token, 61 | 'email' => $user->email, 62 | 'password' => 'password', 63 | 'password_confirmation' => 'password', 64 | ]); 65 | 66 | $response 67 | ->assertSessionHasNoErrors() 68 | ->assertRedirect(route('login')); 69 | 70 | return true; 71 | }); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /tests/Feature/Auth/RegistrationTest.php: -------------------------------------------------------------------------------- 1 | get('/register'); 15 | 16 | $response->assertStatus(200); 17 | } 18 | 19 | public function test_new_users_can_register(): void 20 | { 21 | $response = $this->post('/register', [ 22 | 'name' => 'Test User', 23 | 'email' => 'test@example.com', 24 | 'password' => 'password', 25 | 'password_confirmation' => 'password', 26 | ]); 27 | 28 | $this->assertAuthenticated(); 29 | $response->assertRedirect(route('dashboard', absolute: false)); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 15 | 16 | $response->assertStatus(200); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/Feature/Settings/PasswordUpdateTest.php: -------------------------------------------------------------------------------- 1 | create(); 17 | 18 | $response = $this 19 | ->actingAs($user) 20 | ->from('/settings/profile') 21 | ->put('/settings/password', [ 22 | 'current_password' => 'password', 23 | 'password' => 'new-password', 24 | 'password_confirmation' => 'new-password', 25 | ]); 26 | 27 | $response 28 | ->assertSessionHasNoErrors() 29 | ->assertRedirect('/settings/profile'); 30 | 31 | $this->assertTrue(Hash::check('new-password', $user->refresh()->password)); 32 | } 33 | 34 | public function test_correct_password_must_be_provided_to_update_password(): void 35 | { 36 | $user = User::factory()->create(); 37 | 38 | $response = $this 39 | ->actingAs($user) 40 | ->from('/settings/profile') 41 | ->put('/settings/password', [ 42 | 'current_password' => 'wrong-password', 43 | 'password' => 'new-password', 44 | 'password_confirmation' => 'new-password', 45 | ]); 46 | 47 | $response 48 | ->assertSessionHasErrors('current_password') 49 | ->assertRedirect('/settings/profile'); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /tests/Feature/Settings/ProfileUpdateTest.php: -------------------------------------------------------------------------------- 1 | actingAs(User::factory()->create()); 16 | 17 | $this->get('/settings/profile')->assertOk(); 18 | } 19 | 20 | public function test_profile_information_can_be_updated(): void 21 | { 22 | $user = User::factory()->create(); 23 | 24 | $response = $this 25 | ->actingAs($user) 26 | ->put('/settings/profile', [ 27 | 'name' => 'Test User', 28 | 'email' => 'test@example.com', 29 | ]); 30 | 31 | $response 32 | ->assertSessionHasNoErrors() 33 | ->assertRedirect('/settings/profile'); 34 | 35 | $user->refresh(); 36 | 37 | $this->assertSame('Test User', $user->name); 38 | $this->assertSame('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 | $response = $this 47 | ->actingAs($user) 48 | ->put('/settings/profile', [ 49 | 'name' => 'Test User', 50 | 'email' => $user->email, 51 | ]); 52 | 53 | $response 54 | ->assertSessionHasNoErrors() 55 | ->assertRedirect('/settings/profile'); 56 | 57 | $this->assertNotNull($user->refresh()->email_verified_at); 58 | } 59 | 60 | public function test_user_can_delete_their_account(): void 61 | { 62 | $user = User::factory()->create(); 63 | 64 | $response = $this 65 | ->actingAs($user) 66 | ->delete('/settings/profile'); 67 | 68 | $response 69 | ->assertSessionHasNoErrors() 70 | ->assertRedirect('/'); 71 | 72 | $this->assertGuest(); 73 | $this->assertNull($user->fresh()); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /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/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import laravel from "laravel-vite-plugin"; 3 | import tailwindcss from "@tailwindcss/vite"; 4 | 5 | export default defineConfig({ 6 | plugins: [ 7 | laravel({ 8 | input: ["resources/css/app.css", "resources/js/app.js"], 9 | refresh: true, 10 | }), 11 | tailwindcss(), 12 | ], 13 | }); 14 | --------------------------------------------------------------------------------