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.
统计信息
- 总下载量: 154
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0
- 更新时间: 2020-06-25