"Whoops, looks like something went wrong." when pushing to Heroku

Posted 2 years ago by attila.kom

I have my Laravel (v. 5.4.15) app running successfully locally on Laragon (with nginx) here on my Windows machine (I'm using . I followed the Heroku docs (https://devcenter.heroku.com/articles/getting-started-with-laravel) to try to set it up on Heroku, but I'm left with this: https://boiling-temple-56134.herokuapp.com/. Which just gives me the "Whoops, looks like something went wrong" error message. When I look into storage > logs > laravel.log I notice this error:

[2017-02-17 17:28:45] local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: The "yield" expression can only be used inside a function in C:\laragon\www\anomet\storage\framework\views\361f745536af0d9cf601481d2fd22878cd7c88e4.php:9 Stack trace: #0 {main}

Not sure what to make of it, I don't see anything wrong with my use of yield in my app. I have things like @yield('title').

Please sign in or create an account to participate in this conversation.