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');
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).
Thanks guys, it worked flawlessly what you suggested! :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community