Download the PHP package moc-solucoes/laravel-auth without Composer
On this page you can find all versions of the php package moc-solucoes/laravel-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moc-solucoes/laravel-auth
More information about moc-solucoes/laravel-auth
Files in moc-solucoes/laravel-auth
Package laravel-auth
Short Description Módulo de autenticação no laravel.
License AGPL-3.0
Homepage https://www.mocsolucoes.com.br
Informations about the package laravel-auth
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.php
in arrayproviders
add the lines:
\MOCSolutions\Auth\AppServiceProvider::class,
\MOCSolutions\Core\AppServiceProvider::class,
-
Step 3 - Edit the file
config/auth.php
in arrayproviders.users
change model:
'model' => \APP\User::class,
to'model' => \MOCSolutions\Auth\Models\Usuario::class,
-
Step 4 - Use the command
php artisan vendor:publish
, select firstCore Provider
afterAuth Provider
. -
Step 5 - Add the view files to menu
resources/views/shared/_able-menu.blade.php
andresources/views/shared/_able-menu-externo.blade.php
-
Step 6 - Edit the file
app/Http/Kernel.php
in array$routeMiddleware
add the lines:
'permission' => \MOCSolutions\Auth\Middleware\Permission::class,
'authenticate' => \MOCSolutions\Auth\Middleware\Authenticate::class,
-
Step 7 - Edit the file
app/Http/Middleware/VerifyCsrfToken.php
in array$except
add 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 [email protected]. All security vulnerabilities will be promptly addressed.
Maintained by
This library is maintained by MOC SOLUÇÕES.