This repository contains a Laravel project that implements a Users API. It provides endpoints to manage user data such as creating users, retrieving user details, updating user information, deleting users, as well as managing roles and permissions.
- PHP
- MySQL/MariaDB
- Composer
install the required dependencies using Composer.
composer install
Create a copy of the .env.example file and rename it to .env. Modify the file to provide the necessary configuration values.
cp .env.example .env
Run the database migrations and seed the database with initial data using the following command:
php artisan migrate:fresh --seed
you can start the server using the following command:
php artisan serve
You can find the database file users.sql in the repository. This file contains the database schema and initial data.
You can find the Postman collection file postman.json in the repository. Import this file into your Postman application to access pre-configured requests for testing the Users API.