定制 dotclang/auth-package 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Require the package from Packagist:
composer require dotclang/auth-package

Package on Packagist: https://packagist.org/packages/dotclang/auth-package

  1. If your app does not auto-discover the provider, register the service provider in config/app.php providers 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/*.php into your app routes/):
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.php into your app auth config so config('auth.password_timeout') will be available.
  • Views are loaded under the auth-package:: namespace; after publishing you can edit the views in resources/views/vendor/auth-package.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-23