Support the ongoing development of Laravel.io →
Views Architecture
Last updated 2 years ago.
0

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 2 years ago.
0

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 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Reached reached Joined 27 Feb 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.