Support the ongoing development of →
Views Architecture
Last updated 1 year ago.

All you need is to rename your method in your controller (like what you already did), then make the change in your Route too ...

at first you might be used:

Route::get('annoncer/create', 'YourController@create');

Then change to reflected the change of your method into this ...

Route::get('annoncer/opret', 'YourController@opret');
Last updated 1 year ago.

You don't even need to rename the method. You can use:

Route::get('annoncer/opret', 'YourController@create');

Which IMHO makes code more consistent (everything in one language).

Last updated 1 year ago.

Thanks guys, it worked flawlessly what you suggested! :)

Last updated 1 year ago.

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Reached reached Joined 27 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.