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

Comments

Popular posts from this blog

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"? - development

CORS issue between web/android/ios

Angular.js ng-click with mouse middle button