All of a sudden apache doesn’t work anymore with my laravel 5 site. First time this has happened no idea why, I was just coding and it happened.
This is the browser.
These are the warnings apache has crashed.
I’m using Windows 7 with WAMP – all latest.
What I’ve tried to fix it:
- clear laravel cache “php artisan cache:clear”
- restart apache (wamp)
- try clear browser cache/use firefox instead of chrome.
- restart computer
Turns out there was a recursive loop in my controller instantiations which was causing the crash!
User controller was being loaded by a sub controller and vice versa in the constructor function … ooops!
return new UserController();