I am working with Laravel 5.3. I have a controller function that has $id has its argument
public function verifyMe ($id){
$user = User::findOrfail($id);
return view ('dashboard');
}
I have in my route, a url with this $id parameter.
Route::get('/verify/{id}', [
'uses' => 'UserController@verifyMe',
'as' => 'VerifyMe',
]);
Also in my blade template, I have this
<h3>To verify, <a href="">Click Here.</a> </h3>
But I get this error
Missing required parameters for [Route: sendVerifyToken] [URI: verify/{id}].
I dont know what I am doing wrong.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire