Today we will create a laravel project from scratch. Before that, you have to install composer dependency to work with laravael. If you dont have install composer, pleasae read this post and install composer in your local mechine.
There are two ways to create a laravel project.
- Via laravel Instraller &
- Via laravel Composer
So, How to create Laravel project.
We will create both way a laravel project.
Ensure that you have composer installed in your machine. To check if it there or not by running the below commands:
Install Laravel Installer by running
composer global require laravel/installer
Check is Laravel installer installed or not
Output looks like
Done! GO forward!
First Method is to create laravel project laravel new blog
Second Method is create Laravel project
composer create-project --prefer-dist laravel/laravel blog
In this section create Laravel project by the composer so, after running the above command it’s look like
After taking some time depending on your internet connection, a fresh Laravel project created successfully.
And the out put looks like
Hope you are well-done.