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: ```php protected static string | array $withoutRouteMiddleware = [ VerifyProfileComplete::class...
Jump to solution
2 Replies
Solution
Lara Zeus
Lara Zeus6mo ago
try add this to your MyEditProfile page:
protected static string | array $withoutRouteMiddleware = [
VerifyProfileComplete::class
];
protected static string | array $withoutRouteMiddleware = [
VerifyProfileComplete::class
];
PabloZagni
PabloZagniOP6mo ago
yeah! thats it! You rock dude! I can't logout! Middleware redirects me to my profile! jajaja
Want results from more Discord servers?
Add your server