file_get_contents(composer.json):无法打开流:没有此类文件或目录
我将Laravel项目移至API文件夹
- 中
- /api
- 任何文件夹
- .env
- composer.json
- 工匠
当我运行PHP Artisan Make:Model
模型
我有一个错误:file> file_get_contents(/.../ api/composer.json):打开流:没有这样的文件或目录
如何更改Composer.json文件的路径,对我来说很重要的是Composer.json剩下的文件?
I moved a laravel project into api folder, but left composer.json in root foolder
- /root
- /api
- any folders
- .env
- composer.json
- artisan
When I ran php artisan make:model
Model
I got an error: file_get_contents(/.../api/composer.json): Failed to open stream: No such file or directory
How do I change the path to the composer.json file for artisan, it is important for me that the composer.json file left in the root?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果使用绝对路径可能对您进行编码更好,则应使用此
App_path
全局助手,或者可以使用基本路径
if you use absolute path could be better for you coding, you should use this
app_path
global helper,or you can use the base path