Is Using The Command "composer Create-project Laravel/laravel [name Of My Project]" The Correct Way Of Creating A New Laravel Project?
When creating a Laravel project I use the command "composer create-project laravel/laravel [name of my project]". It takes more than 5 minutes to create and also installs Laravel. Is this the correct way of creating a new Laravel Project?
Answer
To create a new Laravel Project via composer we need to install laravel first. Below command is used to download and install laravel using composer.
composer global require laravel/installer
Once Laravel get installed on your pc larevel new
command will create a fresh Laravel installation in the directory you specify.
laravel new Project_name
Also you can create new laravel project via composer as well. (I Used to create via Composer). You can run the below command in your terminal to create new laravel project.
composer create-project --prefer-dist laravel/laravel project_name
It will take couple of minitues to create the project. Once it done go the the project directory and run the command php artisan serve
to start the development server at http://localhost:8000:
Refer Laravel Documentation for more information.
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?