Check for user profile complete

Hi! My user model has some extra fields that I would like to be completed. My UserPanel is like this

public function panel(Panel $panel): Panel
{
return $panel
->id('user')
->path('user')
->login()
->profile(MyEditProfile::class, isSimple: false)
->middleware([
VerifyProfileComplete::class
])
But I have many redirects! How can I exclude the VerifyProfileComplete Middleware from the MyEditProfile?
Solution
try add this to your MyEditProfile page:

protected static string | array $withoutRouteMiddleware = [
    VerifyProfileComplete::class
];
Was this page helpful?