Laravel is an amazing MVC Framework, written in PHP. It allows you start developing great web projects in no time. Here, we will provide you with a tip on how to start a new project efficiently.
Prerequisites
First, you must configure your environment for Laravel development.
For this, please refer to our related article:
How to install Laravel MVC
The Steps
Every time you start a new Laravel project, do the following:
- Open terminal from the root of your working directory
- Execute the following command:
laravel new YourProjectName
- Navigate to your newly created project’s directory
cd YourProjectName
- Initialize Git, executing the following command
git init
- Add your project to Git
git add .
- Commit
git commit -m "Initial commit"
Happy Coding!