Releases: bitfumes/laravel-multiauth
Auth Provider admin model from config
5.2.1 auth provider admin model is from config file
Change Models from Config file
You can change any model from config file
Fixed New Auth Route Registration
5.1.0 new auth route register fixed
Support for Laravel 8
Updated for Laravel 8
Added Laravel Legacy Factory
Added Laravel UI version 3
New Auth Email Verified fixed
If you need to have some route behind verified middleware, then you can use {guard}.verified
for example, if you have created a student guard then to protect student home page with email verified route you can add middleware like this inside routes/student.php file
...
Route::get('/', 'HomeController@index')->name('student.dashboard')->middleware('student.verified');
...
Laravel 7 friendly with laravel UI
- Upgraded to laravel 7
- Added Laravel UI package by default
php artisan multiauth:install
command automatically runphp artisan ui bootstrap
and then executenpm run install && npm run dev
Admin side with role and permissions
This is the major release, do not update with the old version as this release has many breaking changes.
Activation route changed
Removed admin policy and added a dynamic gate to AuthServiceProvider
Moved model to the configuration file
Permission table added
Permission commands added
while seeding super admin, permission is added to the role
All permission related function is inside hasPermission trait
All factories moved to database/factories
Post method to GET method for admin.all, admin.role and admin.me routes
All permissions with admin details for every admin
BigIncrement and unsignedBigInteger for the schema of admin, admin_role and role table
Install command - include publishing migration, publishing factories, running all migration and seeding initial super admin with role and permissions.
Role permissions are added to role resource (for jwt-auth version)
While creating a role, permissions also stored
adminFormRequest is now having role_ids instead of role_id
while store or update admin, directPermissions can also be synced
All permissions are group by parent
Added permitTo and permitToParent blade syntax and middleware
Add Multiple role to middleware separated by semicolon (:)
Admin side with role and permissions
ChangeLog
This is the major release, do not update with the old version as this release has many breaking changes.
-
Activation route changed
-
Removed admin policy and added a dynamic gate to
AuthServiceProvider
-
Moved model to the
configuration
file -
Permission
table added -
Permission
commands added -
while seeding super admin, permission is added to the role
-
All permission related function is inside
hasPermission
trait -
All factories moved to database/factories
-
Post
method toGET
method for admin.all, admin.role and admin.me routes -
All permissions with admin details for every admin
-
BigIncrement
andunsignedBigInteger
for the schema of admin, admin_role and role table -
Install
command - include publishing migration, publishing factories, running all migration and seeding initial super admin with role and permissions. -
Role permissions
are added to role resource (for jwt-auth version) -
While creating a role, permissions also stored
-
adminFormRequest
is now having role_ids instead of role_id -
while
store
orupdate
admin, directPermissions can also be synced -
All permissions are group by
parent
-
Added
permitTo
andpermitToParent
blade syntax and middleware -
Add Multiple role to middleware separated by semicolon (:)
Fix for array helper function
v2.1.2 fix for array helper function
Fixed Str issue
With laravel 6 str helper functions are deprecated, so this release now uses use Illuminate\Support\Str