doujilou3903 2015-11-17 21:44
浏览 237
已采纳

netbeans中的新laravel项目

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?

EDIT: I can see a lot of views on this topic so I will just say that it is only necessary to install composer, do everything according to laravels manual and only open the project through netbeans, not create it there directly.

  • 写回答

2条回答 默认 最新

  • doufang2228 2015-11-17 23:13
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 dbLinq最新版linq sqlite
  • ¥20 对D盘进行分盘之前没有将visual studio2022卸载掉,现在该如何下载回来
  • ¥15 完成虚拟机环境配置,还有安装kettle
  • ¥15 2024年全国大学生数据分析大赛A题:直播带货与电商产品的大数据分析 问题5. 请设计一份优惠券的投放策略,需要考虑优惠券的数量、优惠券的金额、投放时间段和投放商品种类等因素。求具体的python代码
  • ¥15 有人会搭建生鲜配送自营+平台的管理系统吗
  • ¥15 用matlab写代码
  • ¥30 motoradmin系统的多对多配置
  • ¥15 求组态王串口自定义通信配置方法或代码?
  • ¥15 实验 :UML2.0 结构建模
  • ¥20 用vivado写数字逻辑实验报告撰写,FPGA实验