Reputation: 751
On my local machine, launching the application with php artisan serve
, everything works.
On the production server, using apache, it gives that error when the blade view is not cached.
If I run php artisan view:cache
, the cached views work as expected, but the views that requires some parameter cannot be cached and thus continue to give that error.
The error is reported at an apparently random line. If I delete that line, it's reported somewhere else.
It seems to me like the view compilation works when executing the artisan command, but not during the normal execution of the application.
Upvotes: 0
Views: 44
Reputation: 751
The solution was quite unexpected; apparently, there was something going on with apache. I solved by doing the following steps:
Now everything seems to work. Don't ask me why...
Upvotes: 1