Sunday, March 25, 2018

Laravel Url two levels deep - development

Laravel Url two levels deep

Learning Laravel, I have set up a dev area on AWS with an Ubuntu server. I can create pages that are one level deep

Route::get('/campgrounds','CampgroundController@index');

these work fine but when I go two levels deep they don’t work. When I try to create a route that is two levels deep I get a “that page your looking for doesn’t exist”.

Route::get('/campgrounds/create', function (){
return view('welcome');

});

I don’t see anything in the logging.log file that is erring out. Is there a Laravel setting I need or setting on Apache that needs changing? Maybe something in the .env file?



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-url-two-levels-deep/
via Lzo Media

No comments:

Post a Comment