Sync all role permissions from policies to the database
Syncs role-permission mappings from policies to database after modifying policies or roles. Clears cache and ensures database reflects all policy definitions.
/plugin marketplace add philsquare/permissions/plugin install philsquare-permissions@philsquare-permissionsRun the permissions refresh command to sync all role-permission mappings to the database:
php artisan permissions:refresh
This command:
app/Policies/ that extend BasePolicyrolePermissions() method from each policyRun this command after:
rolePermissions() in any policyAfter running, confirm the command completed successfully and report any errors to the user.