dotclang/auth-package
最新稳定版本:v1.3.0
Composer 安装命令:
composer require dotclang/auth-package
包简介
Custom authentication Laravel with Tailwind UI
README 文档
README
README
AuthPackage provides authentication views, controllers and routes for Laravel (login, register, password reset) using Tailwind-styled Blade templates.
Installation
- Require the package from Packagist:
composer require dotclang/auth-package
Package on Packagist: https://packagist.org/packages/dotclang/auth-package
- If your app does not auto-discover the provider, register the service provider in
config/app.phpproviders array:
Dotclang\AuthPackage\AuthServiceProvider::class,
Publishing files
You can publish individual parts of the package using vendor:publish with the provider and tag.
- Publish configuration (merged into
config('auth')):
php artisan vendor:publish --provider="Dotclang\\AuthPackage\\AuthServiceProvider" --tag="auth-config"
- Publish views (into
resources/views/vendor/auth-package):
php artisan vendor:publish --provider="Dotclang\\AuthPackage\\AuthServiceProvider" --tag="views"
- Publish controllers (into
app/Http/Controllers/AuthPackage):
php artisan vendor:publish --provider="Dotclang\\AuthPackage\\AuthServiceProvider" --tag="controllers"
- Publish routes (copies package
routes/*.phpinto your approutes/):
php artisan vendor:publish --provider="Dotclang\\AuthPackage\\AuthServiceProvider" --tag="routes"
- Publish front-end assets (optional):
php artisan vendor:publish --provider="Dotclang\\AuthPackage\\AuthServiceProvider" --tag="assets"
Install command (convenience)
The package provides a convenience installer command that publishes config, views, controllers and routes, and optionally assets. Usage:
php artisan authpackage:install
Flags:
--assets— publish front-end assets non-interactively--force— overwrite any previously published files
Example (publish everything including assets, force overwrite):
php artisan authpackage:install --assets --force
Notes
- The package merges
config/auth.phpinto your appauthconfig soconfig('auth.password_timeout')will be available. - Views are loaded under the
auth-package::namespace; after publishing you can edit the views inresources/views/vendor/auth-package.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-23