Using a Laravel pipeline is always nice to structure a process like this.
PHP
RBAC in Laravel: A Practical Deep Dive
A deep dive into Role-Based Access Control, from the theory behind roles and permissions to a practical, team-aware Laravel implementation without external packages. Read more