moc-solucoes/laravel-auth

Módulo de autenticação no laravel.

v10.0 2023-06-06 16:15 UTC

This package is auto-updated.

Last update: 2024-11-06 21:16:00 UTC


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.php in array providers add the lines:
    \MOCSolutions\Auth\AppServiceProvider::class,
    \MOCSolutions\Core\AppServiceProvider::class,

  • Step 3 - Edit the file config/auth.php in array providers.users change model:
    'model' => \APP\User::class, to 'model' => \MOCSolutions\Auth\Models\Usuario::class,

  • Step 4 - Use the command php artisan vendor:publish, select first Core Provider after Auth Provider.

  • Step 5 - Add the view files to menu resources/views/shared/_able-menu.blade.php and resources/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 contato@mocsolucoes.com.br. All security vulnerabilities will be promptly addressed.

Maintained by

This library is maintained by MOC SOLUÇÕES.