Download the PHP package escolalms/auth without Composer
On this page you can find all versions of the php package escolalms/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package auth
Auth
What does it do
Package for user authentication. In addition, the package includes:
- user management,
- group management,
- profile management,
- registration.
Installing
composer require escolalms/auth
php artisan migrate
php artisan db:seed --class="EscolaLms\Auth\Database\Seeders\AuthPermissionSeeder"
Optional:
- Run command
escolalms:admin
.
Commands
escolalms:admin
- create account with role admin
Database
category_user
- Table is used to store the user categories.groups
- Table for storing groups.group_user
- Table for storing groups assigned to the user.
Endpoints
All the endpoints are defined in
Tests
Run ./vendor/bin/phpunit
to run tests.
Events
AccountBlocked
- Event is dispatched after blocking the user's account (is_active=false
).AccountConfirmed
- Event is dispatched after the user verifies the account.AccountDeleted
- Event is dispatched after deleting the user.AccountMustBeEnableByAdmin
- Event is dispatched when the user registers andConfig::get('escola_auth.account_must_be_enabled_by_admin') === SettingStatusEnum::ENABLED
AccountRegistered
- Event is dispatched after the account is registered.ForgotPassword
- Event is dispatched when a password reset request is sent.Login
- Event is dispatched on successful login.Logout
- Event is dispatched after logout.PasswordChanged
- Event is dispatched after the password changed.ResetPassword
- Event is dispatched after resetting the password.UserAddedToGroup
- Event is dispatched after adding the user to the group.UserRemovedFromGroup
- Event is dispatched after removing the user from the group.
Listeners
CreatePasswordResetToken
- The listener listens for the ForgotPassword event and executes the following method.
This is useful if you are using TemplateEmail and you don't want to send the default e-mails.
SendEmailVerificationNotification
- The listener listens for the AccountRegistered event and executes the following method.
How to use this on frontend
Admin panel
List of users
Creating/editing user
User categories
List of groups
Creating/editing group
My profile
Permissions
Permissions are defined in seeder.
All versions of auth with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4 | >=8.0
laravel/framework Version >=8.0
escolalms/core Version >=0.1.6
escolalms/categories Version >=0.1
laravel/socialite Version ^5.1
doctrine/dbal Version ^2|^3
escolalms/files Version ^0
escolalms/model-fields Version ^0
laravel/framework Version >=8.0
escolalms/core Version >=0.1.6
escolalms/categories Version >=0.1
laravel/socialite Version ^5.1
doctrine/dbal Version ^2|^3
escolalms/files Version ^0
escolalms/model-fields Version ^0
The package escolalms/auth contains the following files
Loading the files please wait ....