Reputation: 3241
I have seen other questions like this, but none of the answers have worked for me. I am new to laravel and I am trying to add a new route in app/routes.php. I have followed their example exactly and I am still having trouble. What I have tried:
sudo a2enmod rewrite
which did not give me any errorssudo service apache2 restart
Adding this to the bottom of app/routes.php:
Route::controller(Controller::detect());
Am I doing something wrong?
Upvotes: 1
Views: 904
Reputation: 3241
The problem was that laravel wasn't completely installed. It kept failing because my php version was actually outdated. I needed to set it to a more recent php version and then try installing again. For some reason it didn't show any errors. The fix was to delete everything, update php, and start from the beginning.
Upvotes: 1