In this tutorial, you will learn how to clone the Laravel 12 HR System project from GitHub and set it up on your local machine.
Step 1: Clone the repository
Open your terminal and run:
This will download the project files to your local machine.
Step 2: Navigate into the project directory
Step 3: Install PHP dependencies using Composer
Make sure you have Composer installed, then run:
Step 4: Copy the .env
file
Create a copy of the .env.example
file and rename it to .env
:
Step 5: Generate the application key
Run the following Artisan command to generate the app key:
Step 6: Configure your .env
file
Open .env
In a text editor, set up your database credentials. For example:
Make sure you create a database in your MySQL (or other DB) matching your_database_name
.
Step 7: Run database migrations
To create the tables:
Step 8: Serve the application
Run the built-in Laravel server:
You should see output like:
Open your browser and navigate to http://127.0.0.1:8000 to see the HR System in action.