brightweb/authentication
Composer 安装命令:
composer require brightweb/authentication
包简介
Advanced authentication package for Laravel 11+ and PHP 8+
README 文档
README
Wecome to Brightweb Authentication package for Laravel! This package is designed to streamline the authentication process, providing robust middleware for securing both admin and user-specific routes, as well as customizable authentication views.
Installation
To install the Brightweb Authentication package, simply use composer:
composer require brightweb/authentication
Migration
Make sure to run migration or rerun migration for users table to be updated with role.
php artisan migrate
if you have already done the above messioned use
php artisan migrate:fresh
Middleware
This package comes with two built-in middleware 'admin' and 'user'.
This middleware can be used to secure different parts of your application based on user roles.
Admin Middleware
To secure your admin pages, use the 'admin' middleware as shown below:
Route::middleware(['web', 'admin'])->group(function () { // Your admin routes here });
User Middleware
To secure pages such as the cart page and user profile page, use th 'user' middleware as shown below:
Route::middleware(['web', 'user'])->group(function () { // Your user routes here });
Custom Authentication Views
The package includes customizable authentication views that you can publish and modify to your application's design requirements. We call this feature 'brightwebauthconfig'. with this, you can change background and text colors in your config/brightwebauthconfig.php after Publishing config files
Publishing config files
php artisan vendor:publish --tag=brightwebauthconfig
Authentication URLS
This package provides predifined routes for registration,login and logout:
Register: '/register'
Login: '/login'
Logout: '/logout'
These routes are ready to use out of the box, simplifying the setup process.
Conclusion
The Brightweb Authentication package offers a seamless and powerfull solution for managing authentication in your Laravel application.
With easy installation, robust security, middleware, and customizatable views, you can quickly set up a secure and user-frendly authentication system.
Get started today and take your Laravel applications authentication to the next level
License
This package is open-sourced software licensed under the MIT license.
Contributing
We welcome contributions to enhance this package. Please contact us at chikanwazuo@gmail.com
Thank you for choosing BrightWeb Authentication! If you have any questions or need support, please feel free to open an issue on GitHub.
brightweb/authentication 适用场景与选型建议
brightweb/authentication 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 05 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 brightweb/authentication 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brightweb/authentication 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-20