I have an update function in the controller that keeps getting back the error:
Too few arguments to function App\Http\Controllers\Controller::update(), 2 passed in /var/www/vendor/laravel/framework/src/Illuminate/Routing/Controller.php on line 54 and exactly 3 expected
/**
* @param Request $request
* @param int $id
* @param string $emailAddress
* @return Application|Factory|RedirectResponse|Redirector|View
*/
public function update(Request $request, string $emailAddress, int $id)
{
$x =Model::find($emailAddress, $id);
}
I'm not sure why I keep getting this error. Any ideas of what causes it?
my route to the update :
Route::post('/update', 'Controller@update')->name('controller.update');