divHelper11 divHelper11 - 13 days ago 8
PHP Question

New laravel project in netbeans

My friends helped me to install composer, laravel I have also downloaded some laravel projects through SVN. I just wanted to start my own another laravel project. After hours spent on reading about it I honestly do not understand how to create a new laravel project in netbeans. After clicking new project there is option of chosing framework like zend or symphony but my laravel is not there. Could someone advide me please?

Answer

If you read the Installation section from the Laravel Docs you'll see that you only need to run a couple of commands to create a new Laravel app. Open a terminal (command prompt if you're on Windows) and type the following commands:

1. Get the Laravel installer:

composer global require "laravel/installer=~1.1"

2. Go to the directory you want to install Laravel in:

cd path/to/directory

3. Then make sure you have added the composer vendor directory to the PATH system variable (instructions) by appending the following (of course, replace [username] in that path with your actual Windows username):

;C:\Users\[username]\AppData\Roaming\Composer\vendor\bin\

4. Create a new Laravel:

laravel new myapp

The last command will create the app in path/to/directory/myapp. Then all you need to do is create a new project and selecting the source folder you just created your Laravel application in:

Setting up a PHP Project in the NetBeans IDE for PHP