lundi 21 septembre 2015

How do I translate the subject of my password reset email in laravel 5

I am new to laravel and I am currently building a multilingual app. I am implementing password reset using laravels shipped methods. After looking at this method in ResetsPasswords trait:

 protected function getEmailSubject()
    {
        return isset($this->subject) ? $this->subject : 'Your Password Reset Link';
    }

I noticed that I can specify a variable for my subject in the PasswordController like so:

protected $subject = 'Password Reset';

How do I get this value from a language file and assign to the variable?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire