سؤال

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:

  • Enabling mod_rewrite with sudo a2enmod rewrite which did not give me any errors
  • Editing my /etc/apache2/sites-enabled/default file
  • Restarting apache multiple times with sudo service apache2 restart
  • Adding this to the bottom of app/routes.php:

    Route::controller(Controller::detect());

Am I doing something wrong?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top