Laravel 9 Installation
This tutorial will walk you through setting up a Laravel 9 project from a Git repository. Before getting started, ensure you have the following prerequisites installed:
Requirements-
PHP 8.0.2+
-
MySQL
-
Composer (PHP package manager)
-
Git
Instructions
Step 1: Clone the Laravel Project
Open your terminal and run:
Navigate to the cloned project:
Step 2: Install Dependencies
Run the following command to install all necessary PHP dependencies:
Step 3: Configure Environment Variables
Copy the .env
file:
Then, open the .env
file and update your database and mail settings.
Database Configuration:
Mail Configuration (for password reset, etc.):
Step 4: Generate App Key
Run the following to generate your application key:
Step 5: Run Migrations
Create all necessary tables in your database:
Step 6: Start Laravel Server
Finally, serve your Laravel app locally:
Visit your application in your browser: