I'm loading view for mail
$this->mail->send('auth::emails.email_confirmation', ['url' => $confirmationEmailUrl], function ($m) use ($user, $toMail) {
$m->to($toMail, $user->name)->subject('mail');
});
And Service Provider
public function registerViews()
{
$viewPath = base_path('resources/views/modules/auth');
$sourcePath = __DIR__ . '/../Resources/views';
$this->publishes([
$sourcePath => $viewPath
]);
$this->loadViewsFrom([$viewPath, $sourcePath], 'auth');
}
Note: I'm using pingpong module structure.
Any idea what's problem with this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire