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:Jump to solution
try add this to your
MyEditProfile
page:
```php
protected static string | array $withoutRouteMiddleware = [
VerifyProfileComplete::class...2 Replies
Solution
try add this to your
MyEditProfile
page:
yeah! thats it! You rock dude!
I can't logout! Middleware redirects me to my profile! jajaja