🔒Roles
we build a plugin for user ACL build in spatie/laravel-permission so you can use the full package feature
Install Roles Plugin
you can install roles plugin by run this command
this command will install default roles and permissions for admin user and seed a user for you the use will be
email: admin@admin.com
password: QTS@2022
Roles Methods
we build some methods to help you, on every Resource.vue
you will get a 6 var
so you can use it to handle what the end-user sees when he has selected permission.
and for menus you can handle permission using ->can()
with the permission name init
on the Resource.vue
the base view of the generator you can use this way to set your permission
by this way you can control what the end-user sees.
Generate Permission
you can generate permission for a selected table if not exists and append it to the main admin role using this command
where table
is the name of the table you when to use it
Last updated