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:
2. PHP
-
Laravel requires PHP 7.3 or higher.
-
Check your PHP version:
3. Composer
-
Dependency manager for PHP, used to install Laravel packages.
-
Download: https://getcomposer.org/
-
Check if installed:
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:
Replace with your own Git URL if needed.
2. Navigate to the Project Directory
3. Install Laravel Dependencies
This will install all required PHP libraries and packages defined in composer.json
.
4. Create the .env
File
This copies the example environment config to .env
for your local settings.
5. Generate the Application Key
This sets the application encryption key.
6. Configure Database in .env
File
Open the .env
file and update these lines:
Replace
your_db
,root
, andyour_password
with your actual database credentials.
7. Run Database Migrations
This will create all database tables defined in your Laravel migrations.
8. Start Laravel Development Server
Your Laravel app will be running at:
Or the dashboard just for education project?