错误ErrorException:file_get_contents(/var/www/html/Contest/resources/stubs/Controller.stub):无法打开流:没有这样的文件或目录

时间:2019-05-27 06:13:56

标签: laravel

如何解决错误ErrorException:file_get_contents(/var/www/html/Contest/resources/stubs/Controller.stub):无法打开流:没有这样的文件或目录

在/var/www/html/Contest/app/Console/Commands/CrudGenerator.php:52中的

    48 | }     49 |     50 |受保护的函数getStub($ type)     51 | {

  

52 |返回file_get_contents(resource_path(“ stubs / $ type.stub”));       53 | }       54 |       55 |受保护的函数模型($ name)       56 | {

异常跟踪:

1个file_get_contents(“ / var / www / html / Contest / resources / stubs / Controller.stub”)       /var/www/html/Contest/app/Console/Commands/CrudGenerator.php:52

2 App \ Console \ Commands \ CrudGenerator :: getStub(“ Controller”)       /var/www/html/Contest/app/Console/Commands/CrudGenerator.php:79

0 个答案:

没有答案