lundi 10 juillet 2017

Route [confirm] not defined larvel 5

Good day, Recently i'm learning about laravel. So, i'm try to create a simple registration form with an email confirmation. Here is what i try to send the email. Here is my script

Mail::to($email)->send(new Confirmation([
                            'link' => URL::route('confirm', $email),
                            'username' => $username]));

But with my script above i get an error

Route [confirm] not defined.

After i read the message, i'm trying to add Route, because the error say route

Route::get('/confirm/$email', 'Loginsite@confirm');

how can i fix it ? sorry for my bad english



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2u2uKrc
via IFTTT

Aucun commentaire:

Enregistrer un commentaire