moc-solucoes/laravel-auth
Composer 安装命令:
composer require moc-solucoes/laravel-auth
包简介
Módulo de autenticação no laravel.
README 文档
README
About Auth Module
Authenticate module is a module on Laravel framework, have the functions listed here:
- Login, Logout, Register, Recovery Password
- Permissions engine
- Crud Users
- Crud Permissions (roles)
- Crud Profiles
This module is private, exclusive using on MOC Solutions.
Dependencies
Unique dependencie is a module moc-solutions/laravel-core (auto-install)
How Install
-
Step 1 - Use the command composer require
moc-solutions/laravel-auth -
Step 2 - Edit the file
config/app.phpin arrayprovidersadd the lines:
\MOCSolutions\Auth\AppServiceProvider::class,
\MOCSolutions\Core\AppServiceProvider::class, -
Step 3 - Edit the file
config/auth.phpin arrayproviders.userschange model:
'model' => \APP\User::class,to'model' => \MOCSolutions\Auth\Models\Usuario::class, -
Step 4 - Use the command
php artisan vendor:publish, select firstCore ProviderafterAuth Provider. -
Step 5 - Add the view files to menu
resources/views/shared/_able-menu.blade.phpandresources/views/shared/_able-menu-externo.blade.php -
Step 6 - Edit the file
app/Http/Kernel.phpin array$routeMiddlewareadd the lines:
'permission' => \MOCSolutions\Auth\Middleware\Permission::class,
'authenticate' => \MOCSolutions\Auth\Middleware\Authenticate::class, -
Step 7 - Edit the file
app/Http/Middleware/VerifyCsrfToken.phpin array$exceptadd the line:
'auth/admin/api/*' -
Step 8 - Execute te migrate using the command
php artisan migrate -
Step 9 - Execute the seed to create init user and permissions, using command
php artisan db:seed --class=SeedAuthSeeder -
Step 10 - Copy the Example Models Files Examples Models to your project, into
app/Http/Models/Auth
Example Models Files Examples Models.
Example menus Examples Menus.
License
This library is released under the AGPL-3.0 license.
Security Vulnerabilities
If you discover a security vulnerability within Laravel Auth, please send an e-mail to MOC Soluções via contato@mocsolucoes.com.br. All security vulnerabilities will be promptly addressed.
Maintained by
This library is maintained by MOC SOLUÇÕES.
moc-solucoes/laravel-auth 适用场景与选型建议
moc-solucoes/laravel-auth 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 154 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 moc-solucoes/laravel-auth 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 moc-solucoes/laravel-auth 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 154
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0
- 更新时间: 2020-06-25