You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I would like to use the MustVerifyEmail interface on the model, so I did:
useIlluminate\Contracts\Auth\MustVerifyEmail;
useIlluminate\Database\Eloquent\Factories\HasFactory;
useIlluminate\Database\Eloquent\SoftDeletes;
useIlluminate\Foundation\Auth\UserasAuthenticatable;
useIlluminate\Notifications\Notifiable;
useSpatie\Permission\Traits\HasRoles;
class User extends Authenticatable implements MustVerifyEmail
{
}
However, this interface wants to redirect to the default Breeze routes, so I get:
Route [verification.notice] not defined.
What would be the best way to overwrite this behaviour and let it route to auth.verification.notice ?
Obviously I could just remove the ->as('auth.'), but I think for personal uses it's a little bit more clear like that, so preferably I like to keep that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am using Laravel 11 with the Laravel Breeze starter kit and Inertia/Vue3
What I usually like to do with my routes is to make them more clear and group invidual routes together.
So what I did for Laravel Breeze is
instead of the default
That way all my routes become
Now I would like to use the
MustVerifyEmail
interface on the model, so I did:However, this interface wants to redirect to the default Breeze routes, so I get:
What would be the best way to overwrite this behaviour and let it route to
auth.verification.notice
?Obviously I could just remove the
->as('auth.')
, but I think for personal uses it's a little bit more clear like that, so preferably I like to keep that.Beta Was this translation helpful? Give feedback.
All reactions