Zizaco / confide

Confide is a authentication solution for Laravel 4
1.19k stars 258 forks source link

Email subject in config #524

Open robert-codern opened 9 years ago

robert-codern commented 9 years ago

Hello,

I would like to change the subject of the emails sent with confide based on my lang files. I've edited 'Email Views' in config.php but there's no configuration option for the email subject from EloquentPasswordService.php, or I might missed it.

function ($message) use ($user, $token, $lang) {
    $message
        ->to($user->email, $user->username)
        ->subject($lang->get('confide::confide.email.password_reset.subject'));
    }

Thanks

tvillafane commented 9 years ago

@robert-codern, I had this issue recently. You have to make another confide.php file in your lang folder. The file path is like this: your_app/app/lang/packages/language_name/confide/confide.php. From there, you can override the defaults in the Confide package.

robert-codern commented 9 years ago

Great, thank you!