SETUP
Reference
How To Install Laravel For The First Time
Pre-requisite
I. Composer
Download Composer. Follow the installation instructions if you do not already have composer installed.
II. Visual Studio
Download Visual Studio.
III. XAMPP Apache
Download XAMPP.
Startup
There are 2 method to install laravel. Recommend Method 2
Method 1: laravel new [the project name]
Create a folder in the “xampp” folder.
Open the terminal and add this command: composer global require laravel/installer
Result:

After that, add this command: laravel new [the project name]
For example, laravel new first_app

Method 2: composer create-project laravel/laravel [the project name]
Firstly, run the command in CMD. The [backend] is the the project name. It can be changed to any other name.
composer create-project laravel/laravel backend

Then, press "Y".

Run the laravel
Go into the direction of the project name, if your project name backend, then run the command like below
cd backend

Then, run this command. This command will provide the link to view the Laravel.
php artisan serve

Press the control key and the [http://127.0.0.1:8000] link.
Not Able to Run the Laravel?
Did you composer install or composer update? Try to do it.
composer install
Last updated