Create a Laravel New Project

 

The PHP Framework for Web Artisans

Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.

Create a Laravel New 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 dont have install composer, pleasae read this post and install composer in your local mechine.

There are two ways to create a laravel project.

  1. Via laravel Instraller &
  2. 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 bellow commands:

composer --version

Install Laravel Installer by running

composer global require laravel/installer

Check is Laravel installer installed or not

laravel --version

 

Output looks like:

laravel create new project laravel new project create new project laravel create new project in laravel new project laravel laravel start new project laravel new project command

 

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 post i create laravel project by composer so, after running above command it' look like

laravel create new project laravel new project create new project laravel create new project in laravel new project laravel laravel start new project laravel new project command

 

 After taking some times depending on your internet connection, a fresh laravel project created successfully.

And the out put looks like:

laravel create new project laravel new project create new project laravel create new project in laravel new project laravel laravel start new project laravel new project command


 Congrats! you have created successfully a new laravel project!

Read it too

Post a Comment