vendredi 23 octobre 2015

Sending more than the default data to message view on Laravel 5.1 PasswordResets

I'm a newbie on Laravel and wanted to know that if there is a way in which you could send more than the default data to the message view (the one that contains the message of the sent email for resetting password)?

The default data that it receives includes just the token and user info. My user table has: id, username, email, password, user_role. But I have another table "seller" that contains the name and last_name fields and of course the foreign key that connects seller with user, so, I want to retrieve the name from the seller table also and send it to the view of the sent message, any ideas?, I've done it modifying the trait that sends the email, but, I've been told that modifying traits is not a good idea. How can I do this without modifying them?, I'm using laravel 5.1, by the way.

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire