How To Create A New Laravel Project?

How To Create A New Laravel Project

There are more than one ways to create a new Laravel project. And there are multiple types of Laravel applications that you can create. One good example is, depending upon the options you choose or parameters you pass at the time of project creation, you can choose to create an app with or without authentication already integrated into the app from the beginning.

My method of choice of creating a new Laravel Project is via composer.

If you don’t already know what composer is, it is a PHP dependency manager that helps you download and set up all the dependencies you need for a Laravel (in our case) project to run. For more, I recommend you have a look here. You will need composer installed before proceeding with the steps below.

Create a new Laravel Project via Composer

If you are on Mac, open up your terminal, go to the folder where you want your new Laravel project to be created, and type in the following command:

composer create-project –prefer-dist laravel/laravel projectName

If you are on a Mac and if the above command doesn’t work, use the command below:

composer create-project laravel/laravel projectName

If you are on Windows, I suggest you use something like GitBash (my favorite) or you can use Windows Powershell and type the same command given above, once you are inside your preferred folder where you want to create your project.

 create new laravel project via composer
This is what you will see while composer is creating your new Laravel Project

It will take a while but once the composer finishes downloading and installing your project, your vanilla Laravel project is ready to run.

Also Read: How to send Notifications in Laravel?


In order to run your application in the browser, move to your newly created project folder by typing the following command:

cd projectName

Once you are inside your project folder, projectName in this case, type the following command to run your project:

php artisan serve

Then, go to your favorite browser and type:

You should see your newly created Laravel application up & running!


Also Read: How To Create A New Laravel Project with TailwindCSS and Livewire

Share This Post

8 thoughts on “How To Create A New Laravel Project?”

  1. Pingback: How to send notifications in Laravel 7.x? - Rajiv Verma

  2. Pingback: How to install PuTTY on MacBook Air M1?

  3. Pingback: Create New Laravel 8.0 Project With TailwindCSS and LiveWire - Rajiv Verma

  4. Pingback: How to install PuTTY on MacBook Air M1?

  5. Pingback: How To Create a New Laravel Project with Laravel Breeze Starter Kit? - Rajiv Verma

  6. Pingback: How To Import Data From Excel (XLS, XLSX) Files in Laravel? - Rajiv Verma

  7. Pingback: How To Store and Access Information using .env File - Laravel? - Rajiv Verma

  8. Pingback: How To Integrate Shiprocket in Laravel Web Application | Shiprocket API

Leave a Comment

Your email address will not be published. Required fields are marked *

Subscribe To my Future Posts

Get notified whenever I post something new

More To Explore