Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust email verification and update composer
Refactor EmailVerificationPromptController to use Illuminate\Routing\Controller, remove the explicit union return type, and simplify the post-verification redirect to redirect()->intended('/'), while still returning the auth.verify-email view when needed. Update composer.json to a simplified Laravel project layout and bump core dependencies (e.g. laravel/framework ^12.50, laravel/fortify, blade icons packages) removing many dev-only entries and extra scripts. Add generated bootstrap cache files (bootstrap/cache/services.php and packages.php) and remove the bootstrap/cache/.gitignore. Also include minor updates to routes/auth.php and package-lock.json as part of the dependency/config changes.
  • Loading branch information
Its-Lakshitha committed Feb 6, 2026
commit 30c49432e81fe3fa7973ffd2e8b2a1f3d11cee2b
13 changes: 4 additions & 9 deletions app/Http/Controllers/Auth/EmailVerificationPromptController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,15 @@

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\View\View;
use Illuminate\Routing\Controller;

class EmailVerificationPromptController extends Controller
{
/**
* Display the email verification prompt.
*/
public function __invoke(Request $request): RedirectResponse|View
public function __invoke(Request $request)
{
return $request->user()->hasVerifiedEmail()
? redirect()->intended(route('dashboard', absolute: false))
: view('auth.verify-email');
? redirect()->intended('/')
: view('auth.verify-email');
}
}
2 changes: 0 additions & 2 deletions bootstrap/cache/.gitignore

This file was deleted.

51 changes: 51 additions & 0 deletions bootstrap/cache/packages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php return array (
'afatmustafa/blade-hugeicons' =>
array (
'providers' =>
array (
0 => 'Afatmustafa\\HugeIcons\\BladeHugeIconsServiceProvider',
),
),
'blade-ui-kit/blade-heroicons' =>
array (
'providers' =>
array (
0 => 'BladeUI\\Heroicons\\BladeHeroiconsServiceProvider',
),
),
'blade-ui-kit/blade-icons' =>
array (
'providers' =>
array (
0 => 'BladeUI\\Icons\\BladeIconsServiceProvider',
),
),
'laravel/fortify' =>
array (
'providers' =>
array (
0 => 'Laravel\\Fortify\\FortifyServiceProvider',
),
),
'nesbot/carbon' =>
array (
'providers' =>
array (
0 => 'Carbon\\Laravel\\ServiceProvider',
),
),
'nunomaduro/termwind' =>
array (
'providers' =>
array (
0 => 'Termwind\\Laravel\\TermwindServiceProvider',
),
),
'owenvoke/blade-fontawesome' =>
array (
'providers' =>
array (
0 => 'OwenVoke\\BladeFontAwesome\\BladeFontAwesomeServiceProvider',
),
),
);
258 changes: 258 additions & 0 deletions bootstrap/cache/services.php

Large diffs are not rendered by default.

79 changes: 7 additions & 72 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "laravel/livewire-starter-kit",
"name": "laravel/laravel",
"type": "project",
"description": "The official Laravel starter kit for Livewire.",
"keywords": [
"laravel",
"framework"
],
"license": "MIT",
"require": {
"php": "^8.2",
"laravel/framework": "^12.50",
"laravel/fortify": "^1.34",
"blade-ui-kit/blade-icons": "^1.8",
"afatmustafa/blade-hugeicons": "^1.0",
"blade-ui-kit/blade-heroicons": "^2.6",
"davidhsianturi/blade-bootstrap-icons": "^2.1",
"laravel/fortify": "^1.30",
"laravel/framework": "^12.0",
"laravel/tinker": "^2.10.1",
"livewire/flux": "^2.1.1",
"livewire/volt": "^1.7.0",
"owenvoke/blade-fontawesome": "^2.9",
"postare/blade-mdi": "^1.1"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/breeze": "^2.3",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.18",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
"pestphp/pest": "^3.8",
"pestphp/pest-plugin-laravel": "^3.2"
"blade-ui-kit/blade-heroicons": "^2.6"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"App\\": "app/"
}
},
"autoload-dev": {
Expand All @@ -45,55 +21,14 @@
}
},
"scripts": {
"setup": [
"composer install",
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"@php artisan key:generate",
"@php artisan migrate --force",
"npm install",
"npm run build"
],
"dev": [
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"npm run dev\" --names='server,queue,vite'"
],
"test": [
"@php artisan config:clear --ansi",
"@php artisan test"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
"@php artisan migrate --graceful --ansi"
],
"pre-package-uninstall": [
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
Loading