jrean / laravel-user-verification

PHP package built for Laravel to easily handle a user email verification and validate the email
Other
853 stars 118 forks source link

Use a lang file. #54

Closed lukasoppermann closed 8 years ago

lukasoppermann commented 8 years ago

Hey,

I think it would be good to add a language file for all the text and move it out of the code, for example here: https://github.com/jrean/laravel-user-verification/blob/master/src/UserVerification.php#L430 but also here: https://github.com/jrean/laravel-user-verification/blob/master/src/resources/views/user-verification.blade.php#L9-L17

This would:

  1. make it easier to customize the text without calling all the functions yourself
  2. Make it easier to add multi-language support, by using your own language files.

We could make the language file publishable by the artisan publish command as well, I think.

Let me know if you like the idea and I will send a PR.

jrean commented 8 years ago

Agree

jrean commented 8 years ago

https://github.com/jrean/laravel-user-verification/releases/tag/v3.0.8