Thursday, March 9, 2017

how to change url name while using resource route in laravel

Normally while using resource route for example like this:

Route::resource('somethings','SomethingsController' );

The url here which is displayed in browser in http://localhost:8000/somthings/create but what want is to display like this:

http://localhost:8000/somthings basically I dont want create in the url.



via user7587888

Advertisement