Laravel route doesn’t go to correct controller method - development

Laravel route doesn’t go to correct controller method

I have those routes

Route::get('/account/{id}','AccountsController@show')->name('account.show');
Route::get('/account/create','AccountsController@create')->name('account.create');

And those methods in my AccountsController

public function show(){

    echo 'SHOW';

}
public function create(){

    echo 'CREATE';

}

And when I use route account/create it return “SHOW”. Any idea why it doesn’t go to the correct method ? Thank you.



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-route-doesnt-go-to-correct-controller-method/
via Lzo Media

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome