简体   繁体   English

Netbeans 8.0 Composer与Laravel 5

[英]Netbeans 8.0 Composer with Laravel 5

I'm trying to create a PHP project with Netbeans 8.0 using Laravel 5. Since some versions ago Netbeans shows a "Composer Tab" during the creation of the project, but I can't undestand how to do it. 我正在尝试使用Laravel 5使用Netbeans 8.0创建一个PHP项目。由于某些版本以前Netbeans在项目创建过程中显示了“Composer Tab”,但我无法理解如何做到这一点。

Netbeans Composer

I suppose that "laravel/laravel" is the correct one, but when I launch the project it shows those errors: 我认为“laravel / laravel”是正确的,但是当我启动项目时它会显示这些错误:

Warning: require(C:\xampp\htdocs\SC\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\SC\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\SC\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\SC\bootstrap\autoload.php on line 17

I found this solution (works on Windows 8.1): 我找到了这个解决方案(适用于Windows 8.1):

  1. Create your NetBeans project 创建NetBeans项目
  2. Use Composer in Netbeans (see my previous post), search "laravel" and add it 在Netbeans中使用Composer(参见我之前的帖子),搜索“laravel”并添加它

  3. Donwload the zip file of Laravel from this link: https://github.com/laravel/laravel 从这个链接下载Laravel的zip文件: https//github.com/laravel/laravel

  4. Unzip the file in your Netbeans project 解压缩Netbeans项目中的文件

  5. Everything works fine and you can run your project 一切正常,你可以运行你的项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM