hello, every laravel developer
right now I m working on a project and implementing spatie user, roles, and permission package eagerly.
I want to auto-create permission ('create', 'update', 'show', 'delete') for each table when we migrate all tables to database.
it is possible to do this kind of feature so that the admin can get all permission automatically and not every time create permission for each table respectively.
Otherwise; check the command classes e.g. MigrateCommand, FreshCommand to see what events are dispatched whenever migrations are executed (e.g. there is a SchemaLoaded event; a DatabaseRefreshed event) - you can create your own listener(s) to interrogate the Database schema and generate the CRUD permissions per table.
@tykus thanks for your reply, but I am the intermediate level guy in laravel , and I had not used or listen to any such types of this events, so can you help me to resolve this