Laravel 8 Tutorial - Installation
In this video, we will learn how to install Laravel 8, a PHP-based web framework ideal for building both simple and complex web applications.
To create a Laravel 8 project, we will use Composer. First, let's install Composer. Go to Google and search for "Composer". Open the Composer link and download the composer-setup.exe file.
Run the setup and install Composer. After installation, let's check if Composer is installed correctly. Open the Command Prompt and run the command:
composer
This will display the Composer version and all command details.
Now, let's create a Laravel 8 project. Go to the project location, for example, C:\xampp\htdocs. Open the Command Prompt by typing "cmd" in the URL bar.
Inside the Command Prompt, run the command:
composer create-project laravel/laravel laravel8pro
This will create the Laravel 8 project. Once the project is created, let's open it in Visual Studio Code. Click on "Add Folder" and browse to the project directory. Select the laravel8pro project folder.
You should see the Laravel 8 project folder structure. Open the composer.json file and verify that the Laravel version is 8.x.
Now, let's run the Laravel project. Go to the Command Prompt and run the command:
php artisan serve
This will start the Laravel 8 project on localhost:8000. Let's check it out. Switch to the browser and go to http://localhost:8000.
You should see the Laravel 8 project running. That's it! You have successfully installed and created a Laravel 8 project.