Config cache in laravel 5 results in view not found

前端 未结 1 631
既然无缘
既然无缘 2021-02-07 07:59

I\'m tying to render a simple view:

public function test()
{
    return \\View::make(\'test\');
}

I cache my config :

$ php art         


        
相关标签:
1条回答
  • 2021-02-07 08:24

    It does not work when your machine is running on vagrant (or another virtual environnement) and you run php artisan config:cache out of vagrant. Do you need to run this command in vagrant. The problem is about path routes (path are not the same in vagrant and out of vagrant).

    0 讨论(0)
提交回复
热议问题