For example, the following code defines two roles, authenticated and admin, which effectively apply to authenticated users and users with the username admin, respectively.
Custom User Registration and Login Page with Entity Framework
Laravel Sanctum is the API package we have chosen to include with the application starter kit because we believe it is the best fit for the majority of web application's authentication needs.