A laravel application to manage organisation's users:
- Extending
users
table to have bothADMIN
andEMPLOYEE
users. ADMIN
users can register a new account and create a newOrganisation
.ADMIN
users can see aEMPLOYEE
users data grid after logging in, includingADMIN
users.ADMIN
users can create, edit, and delete users.- Create seeders can create organisations and users, including admin users.
- A Company CRUD for
ADMIN
users. (Search is optional) - Allow
ADMIN
users can searchEMPLOYEE
users. - A policy to prevent
ADMIN
users from updating and deleting otherADMIN
users. - A policy to prevent
ADMIN
users from deleting himself.
- Database: MySQL
- Backend Framework: Laravel
- Frontend: React
- Docker
This project has a docker-compose.yml
contains the basic stack setup to quickly spin up the local development environment.
To set up the project please follow the steps below:
- Set up the
.env
file:
cp .env.example .env
- Start up the services
docker-compose up -d
- Install the dependencies
docker-compose exec php composer install
npm install
- Build the frontend
npm run dev
- Create a key
docker-compose exec php php artisan key:generate
- Run migrations
docker-compose exec php php artisan migrate --seed