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
No comments:
Post a Comment