Admin dashboard in Laravel ​8 | HR System Clone

Admin dashboard in Laravel ​8 | HR System Clone

Prerequisites

Make sure the following tools are installed on your system before starting:

1. Git

  • Used for cloning the Laravel project from a repository.

  • Download: https://git-scm.com/

  • Check if installed:

    git --version

2. PHP

  • Laravel requires PHP 7.3 or higher.

  • Check your PHP version:

    php -v

3. Composer

  • Dependency manager for PHP, used to install Laravel packages.

  • Download: https://getcomposer.org/

  • Check if installed:

    composer -v

4. Web Server

  • For development: Laravel has a built-in server (php artisan serve).

  • For production: Use Apache or Nginx.

5. Database

  • You need a database system like MySQL, PostgreSQL, or SQLite installed.

  • Example: MySQL for most Laravel projects.

Clone and Set Up Laravel Project

1. Open Terminal and Clone the Project

Navigate to the folder where you want the project, then run:

git clone https://gitlab.com/SoengSouy/hr_ms_laravel8.git

Replace with your own Git URL if needed.

2. Navigate to the Project Directory

cd hr_ms_laravel8

3. Install Laravel Dependencies

composer install

This will install all required PHP libraries and packages defined in composer.json.

4. Create the .env File

cp .env.example .env

This copies the example environment config to .env for your local settings.

5. Generate the Application Key

php artisan key:generate

This sets the application encryption key.

6. Configure Database in .env File

Open the .env file and update these lines:

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_db DB_USERNAME=root DB_PASSWORD=your_password

Replace your_db, root, and your_password with your actual database credentials.

7. Run Database Migrations

php artisan migrate

This will create all database tables defined in your Laravel migrations.

8. Start Laravel Development Server

php artisan serve

Your Laravel app will be running at:

http://localhost:8000
Soeng Souy

Soeng Souy

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

3 Comments

CAN FEEDBACK
  1. Akhilesh
    Akhilesh
    where are u from bro
  2. Akhilesh
    Akhilesh
    (y)
  3. Dream Star
    Dream Star
    Can I use the dashboard for product project?
    Or the dashboard just for education project?
close