Download the PHP package delgont/auth without Composer
On this page you can find all versions of the php package delgont/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package auth
Short Description Larevel User - Permissions -Roles
License MIT
Homepage https://github.com/delgont/auth
Informations about the package auth
Laravel Authentication Backend
Composer
Laravel Framework 6.0+
Introduction
Laravel authentication backend that provides the following features.
- [x] Email or username authentication
- [x] Access control using roles and permissions.
- [x] Access control using roles and permissions.
Installation
Multi Username Authentication
username
email
-
Login Controller.
Create your custom login controller and use
Delgont\Auth\Concerns\MultiAuthCredentials
. this will overide the credentials function - Your login View.
Access Control
Regulate access to your laravel systems resources, features and functionality.
Access control basing on user type
-
add
usertype
&user_id
columns to your authenticatable migration -
Add
Delgont\Auth\Concerns\HasUserTypes
Trait to user model. - Your usertype models
User can have single role or multiple roles
Using role middleware to restrict access
Use Delgont\Auth\Concerns\ModelHasRoles
trait on your authenticable model
Assigning roles
Protecting routes using the role middleware
Using permission middleware to restrict access
Configure your default permissions in the permissions configuration file
Artisan Commands
Roles
All versions of auth with dependencies
illuminate/support Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/auth Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/database Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
laravel/helpers Version ^1.5.0 || 1.6.0 || 1.7.0