How to Install Laravel?
Yes, we need to install laravel in our PC to use it. First of all we need Composer, download and install composer and we are ready to go.
When composer finishes installing on your machine. Type this command to install the Laravel on your machine:
composer global require "laravel/installer"
After that Laravel is successfully installed on your machine.
Laravel will not run if there is no php, Apache server and database to handle the request of Laravel.
We need to install XAMPP Control panel ((X), Apache (A), MariaDB (M), PHP (P) and Perl (P))
Go to your directory where you want to create your laravel application.
Run this laravel command to create a fresh laravel application
We will try to run your fresh Laravel application. Go to command prompt or any console and go to your myweb directory then run this command
php artisan serve
You can access your fresh Laravel in this address:
http://localhost:8000
Next Topic: Laravel file structure
Yes, we need to install laravel in our PC to use it. First of all we need Composer, download and install composer and we are ready to go.
When composer finishes installing on your machine. Type this command to install the Laravel on your machine:
composer global require "laravel/installer"
After that Laravel is successfully installed on your machine.
Laravel will not run if there is no php, Apache server and database to handle the request of Laravel.
We need to install XAMPP Control panel ((X), Apache (A), MariaDB (M), PHP (P) and Perl (P))
Go to your directory where you want to create your laravel application.
Run this laravel command to create a fresh laravel application
laravel new myweb
myweb will be created in your specified directory that contains the fresh Laravel application. Feel free to explore it for now, but later I will explain it in detailed. We will just focus on installing Laravel.We will try to run your fresh Laravel application. Go to command prompt or any console and go to your myweb directory then run this command
php artisan serve
You can access your fresh Laravel in this address:
http://localhost:8000
Next Topic: Laravel file structure
Comments
Post a Comment