Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
EMS is a web-based solution that help organizations manage their employees. This application allows employees and an admin to use the system. The administrator create user accounts and the application helps in salary payments.
- Admin
- Employee
- PHP - ^7.4
- node
- npm
- composer
You have to clone this repo using either HTTPS
or SSH
- HTTPS
git clone https://github.com/adaugochi/employee-management-system.git
- SSH
git clone [email protected]:adaugochi/employee-management-system.git
Make a copy of .env.example
to .env
in the env directory. Fill in the with appropriate details. Examples
## Database
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
## Mail (You can create an account with mailtrap.io)
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
## Default Admin creds
DEFAULT_ADMIN_EMAIL=[email protected]
DEFAULT_ADMIN_PASSWORD=11111111
DEFAULT_ADMIN_PHONE_NUMBER="08101111111"
DEFAULT_ADMIN_INTL_NUMBER="+2348101111111"
composer install
npm install
Sample Virtual Host Config for Apache
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "<WebServer Root Dir>/employee-management-system/public"
ServerName local.manup.com
<Directory <WebServer Root Dir>/employee-management-system/public>
AllowOverride all
Options -MultiViews
Require all granted
</Directory>
</VirtualHost>
You can either create
your own database and run migration
or simply import the ems.sql
file that is in the root directory
CREATE DATABASE ems CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci;
# run migration
php artisan migrate
# rollback migration (optional)
php artisan migrate:rollback
# refresh migration (optional)
php artisan migrate:refresh
# run migration
php artisan migrate --path=database/migrations/filename.php
# rollback migration
php artisan migrate:rollback --path=database/migrations/filename.php
# refresh migration
php artisan migrate:refresh --path=database/migrations/filename.php
This will help seed the default admin credentials into the database
php artisan db:seed --class=UserSeeder
You can compile your scss file to css using:
npm run watch
You can run the application in development mode by running this command from the project directory:
php artisan serve
The command above can be skipped if you already created a virtual host
- Adaa Mgbede [email protected] Linked In
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.