- Rest API's only. It has no visual interface
- Complete CRUD with form request validation for users
- First user record automatically created during migration
- Thunder Client Collection available in root
- Basic authentication configured to route api/login (to get token)
- Sanctum authentication configured for all other routes (with bearer token)
- Clone this repository
- To install dependecies run:
composer install
- Configure database connection in .env file
- Run:
php artisan migrate
- Import thunder-collection.json file in Thunder Client extension (VSCode) or Postman
- To start server, run:
php artisan serve
- Run the auth/login request in your client. This request need basic authentication with headers username: "admin@backend.com" and password: "admin01"
- Get the token returned in response and add into other requests as header Bearer Token
- By default a user must have the following attributes:
{
"name": "John Doe",
"email": "johndoe@backend.com",
"password": "johndoe123",
"profile": "Collaborator"
}
- Profile attribute is optional
- The password is needed only in store requests, but is optional in updates
- By default, the profile attribute can be: "Administrator" (default) or "Collaborator". This can be configured in lang/en/auth.php file.
- Only Administrators can manage users
- A logged user cannot remove your own user
Enjoy.