0
0
Laravelframework~30 mins

Laravel installation with Composer - Mini Project: Build & Apply

Choose your learning style9 modes available
Laravel installation with Composer
📖 Scenario: You want to start a new web project using Laravel, a popular PHP framework. To do this, you need to install Laravel using Composer, a tool that manages PHP packages.
🎯 Goal: Set up a new Laravel project by installing it with Composer and prepare the basic project structure.
📋 What You'll Learn
Use Composer to create a new Laravel project named myLaravelApp
Set the Laravel version to 10.*
Navigate into the project directory myLaravelApp
Run the Laravel development server
💡 Why This Matters
🌍 Real World
Laravel is widely used to build modern web applications quickly and efficiently. Installing it correctly is the first step to creating websites and APIs.
💼 Career
Knowing how to set up Laravel projects is essential for PHP developers working in web development roles, especially in companies using Laravel for backend services.
Progress0 / 4 steps
1
Create a new Laravel project using Composer
Run the command composer create-project laravel/laravel myLaravelApp "10.*" in your terminal to create a new Laravel project named myLaravelApp with Laravel version 10.*.
Laravel
Need a hint?

Use Composer's create-project command with the package laravel/laravel, the project folder myLaravelApp, and version 10.*.

2
Navigate into the Laravel project directory
Run the command cd myLaravelApp to change your current directory to the newly created Laravel project folder myLaravelApp.
Laravel
Need a hint?

Use the cd command followed by the folder name myLaravelApp.

3
Start the Laravel development server
Run the command php artisan serve inside the myLaravelApp directory to start the Laravel development server.
Laravel
Need a hint?

Use the php artisan serve command to launch the built-in Laravel server.

4
Verify the Laravel welcome page
Open your web browser and go to http://localhost:8000 to see the Laravel welcome page confirming the installation.
Laravel
Need a hint?

After running the server, open http://localhost:8000 in your browser to check the Laravel welcome page.