lornequinn/auth-monorepo
Composer 安装命令:
composer require lornequinn/auth-monorepo
包简介
Fortify-based authentication with Livewire views for Laravel
README 文档
README
Fortify-based authentication with Livewire views for Laravel. Drop-in auth scaffold with login, registration, password reset, email verification, two-factor authentication, and a profile page.
Requirements
- PHP 8.3+
- Laravel 13
- Livewire 4
Installation
composer require lornequinn/auth
The package auto-discovers via Laravel's package discovery. No manual provider registration needed.
Publish the config:
php artisan vendor:publish --tag=lq-auth-config
Database
Run the Fortify migrations (if you haven't already):
php artisan migrate
Your User model must implement MustVerifyEmail if you want email verification:
use Illuminate\Contracts\Auth\MustVerifyEmail; class User extends Authenticatable implements MustVerifyEmail { // ... }
For two-factor authentication, add the TwoFactorAuthenticatable trait:
use Laravel\Fortify\TwoFactorAuthenticatable; class User extends Authenticatable implements MustVerifyEmail { use TwoFactorAuthenticatable; }
What You Get
Routes
| Route | Component | Middleware |
|---|---|---|
/login |
Login | guest |
/register |
Register | guest |
/forgot-password |
ForgotPassword | guest |
/reset-password/{token} |
ResetPassword | guest |
/two-factor-challenge |
TwoFactorChallenge | guest |
/email/verify |
VerifyEmail | auth |
/user/confirm-password |
ConfirmPassword | auth |
/dashboard |
Dashboard | auth, verified |
/profile |
ProfileShow | auth, verified |
Livewire Components
All components are registered under the lq-auth prefix:
lq-auth.loginlq-auth.registerlq-auth.forgot-passwordlq-auth.reset-passwordlq-auth.verify-emaillq-auth.confirm-passwordlq-auth.two-factor-challengelq-auth.dashboardlq-auth.profile.showlq-auth.profile.update-profile-informationlq-auth.profile.update-passwordlq-auth.profile.two-factor-authentication
Configuration
After publishing, edit config/lq-auth.php:
Layouts
'guest_layout' => 'lq-auth::layouts.guest', 'app_layout' => 'lq-auth::layouts.app',
Override these to use your own layouts. The package ships minimal layouts — point these at your app's layout views or a UI package.
Features
Toggle any Fortify feature:
'features' => [ 'registration' => true, 'reset-passwords' => true, 'email-verification' => true, 'update-profile-information' => true, 'update-passwords' => true, 'two-factor-authentication' => true, ],
Post-Login Redirect
'home' => '/dashboard',
Middleware
Middleware for authenticated routes (dashboard, profile):
'middleware' => ['web', 'auth', 'verified'],
Custom Actions
Override Fortify action classes with your own:
'actions' => [ 'create_user' => App\Actions\CreateNewUser::class, 'update_profile' => null, // null = use package default 'update_password' => null, 'reset_password' => null, ],
Customising Views
Publish the views:
php artisan vendor:publish --tag=lq-auth-views
Views are published to resources/views/vendor/lq-auth/. Edit them directly.
License
MIT
lornequinn/auth-monorepo 适用场景与选型建议
lornequinn/auth-monorepo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lornequinn/auth-monorepo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lornequinn/auth-monorepo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-08