Here is the updated README.md with the Default Login Credentials section added at the bottom.
# ERM Project (Laravel 12)
This guide provides the steps to install and configure the ERM project locally.
## Prerequisites
Ensure you have the following installed:
- PHP >= 8.2
- Composer
- Node.js & NPM
- MySQL (or your preferred database)
## Installation Steps
### 1. Clone the Repository
```bash
git clone <your-repo-url>
cd erm
Install the required PHP packages using Composer:
composer install
Copy the example environment file to create your local configuration:
For Mac/Linux:
cp .env.example .env
For Windows:
copy .env.example .env
Generate the encryption key required by Laravel:
php artisan key:generate
Open the .env file in your code editor and update the database credentials. Look for this section:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=erm_db # Change to your database name
DB_USERNAME=root # Change to your database username
DB_PASSWORD= # Change to your database password
Make sure to create an empty database in your MySQL setup matching the name above.
Create the database tables and populate them with dummy data:
php artisan migrate
php artisan db:seed
Install the Node packages and build the assets:
npm install
npm run build
Start the local development server:
php artisan serve
The application should now be accessible at: http://127.0.0.1:8000
Use the following credentials to log in after seeding the database:
| Role | Password | |
|---|---|---|
| Admin | admin@yopmail.com |
12345678 |
| Agent | agent@yopmail.com |
12345678 |
| Leader | leader@yopmail.com |
12345678 |