josiasmontag / laravel-email-verification

Laravel package to handle user verification using an activation mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[enhancement] an option to move views and lang files to custom folder

Yahav opened this issue · comments

commented

Is it possible to move the views and language files (after published) outside the vendor folders created?
for instance, i'd like to move the view file to the views/auth folder and the language files to: lang/$LANG/emailverification.php

is this possible?

It is Laravel convention to publish package views in the views/vendor folder. Would not make sense to it differently here.
However, you could just replace the published vendor blade templates with something like @include('my.path.to.something') to use your custom paths.

commented

and how about the language file?
also, how would i do what you suggested?