Download the PHP package drkwolf/laravel-user without Composer
On this page you can find all versions of the php package drkwolf/laravel-user. 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 laravel-user
Introduction
Manage User model that has multiple roles, complex data that change with the role or the context, and multiple contacts
Features:
- handle optional data: filter and validation
- handle contacts
Dependencies
- drkwolf/laravel-handler : for request handler and data presenter
- spatie/laravel-medialibrary : Optional, form user's avatar
- laravel/passport : Optional, authentication
- santigarcor/laratrust : Optional managing teams and groups
Database
Configuration
publish the configuration file
setup user model parameters
rules can also be a function
default Handlers
UserCredentialHandler
Update credentials password, email, username and phone
action | fields | event |
---|---|---|
update | password, email, username, phone* | CredentialUpdatedEvent |
resetPassword | password | CredentialUpdatedEvent |
*: optional fields
UserHandler
handle user main fields, options and contacts
action | fields | event |
---|---|---|
attachAvatar | attachAvatar | |
create | * | UserCreatedEvent |
update | * | UserUpdatedEvent |
UserInfoHandler
same as UserHandler but doesn't handle options field
Managing Users
HasOptions Trait
see docs/options
HasContacts Trait
see docs/contacts
All versions of laravel-user with dependencies
PHP Build Version
Package Version
The package drkwolf/laravel-user contains the following files
Loading the files please wait ....