Laravel is an open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern and based on Symfony.
Reference: laravel.com
First, download Laravel installer using Composer.
composer
global require "laravel/installer"
Note: Make sure to place composer's system-wide vendor bin directory in your path so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:
To create laravel project, copy this code and paste to terminal or command prompt (cmd).
laravel
new blog
First, download Composer and install it.
To create laravel project, copy this code and paste to terminal or command prompt (cmd).
composer
create-project --prefer-dist laravel/laravel website
If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000 :
To run your laravel project, copy this code and paste to terminal or command prompt (cmd). Make sure the location you run this code inside your laravel project directory.
php artisan serve
Note: Everytime you want to see your project you need to run this code in terminal or cmd. Don't close it or else you don't see your laravel project in browser.
I created a laravel project named "website". This is the laravel project directory.
/ website - directory / app / bootstrap / config / database / public / resources / routes / storage / tests / vendor .env .env.example .gitattributes .gitignore artisan composer.json composer.lock package.json phpunit.xml server.php readme.md webpack.mix.js
(I will discuss every files in laravel project in my future tutorial and I will teach you what is the purpose of it or how to use it.)