Create a new Laravel 8.0 project
Hello Artisan, Today we will create a laravel project from scratch. Before that, you have to install composer dependency to work with laravael. If you don't have an install composer, please read this post and install composer in your local machine.
There are two ways to create a laravel project.
- Via laravel Installer &
- Via laravel Composer
So, How to create Laravel project.
We will create both ways a laravel project.
Ensure that you have the composer installed in your machine. To check if it there or not by running the below commands:
composer --version
Install Laravel Installer by running
composer global require laravel/installer
Check if Laravel installer installed or not
laravel --version
Output looks like
Done! GO forward!
The first Method is to create laravel project laravel new blog
The second Method is to 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 looks like
After taking some time depending on your internet connection, a fresh Laravel project created successfully.
And the output looks like
Hope you are well-done.