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 Zeus2mo ago
try add this to your MyEditProfile page:
protected static string | array $withoutRouteMiddleware = [
VerifyProfileComplete::class
];
protected static string | array $withoutRouteMiddleware = [
VerifyProfileComplete::class
];
PabloZagni
PabloZagni2mo 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
More Posts
->RenderHook() problem in AdminPanelProvider.php | Class "Filament\View\PanelsRenderHook" not foundHello. I had this same configuration in my last application two months ago and had no problems. ForHas anyone implement QR Code Scanner in a field for filament?So a simple QR that will fill in a certain field on successful scanfileUpload download file directly to download folderPleas, probably i'm doing something wrong, i use file upload component with s3, everything works finForm in resource index pageI'm creating a resource to edit an invoice template, so I only need one data entry, and I don't wantRepeater Button Position - On Top? On top and bottom?Is it possible to have Repeater action buttons at the top AND bottom? If not, can I position the buCheckboxList: modifyOptionsQueryUsing does not existThe docs say there should be this method to modify the options but this method does not exist: httpsBest Practices for Websites with FilamentPHPNow that I understand how to use FilamentPHP for creating apps and backends, I need to create the frRelationship Manager for BelongsTo and HasMany RelationshipWhat I am trying to do: I have a Relationship between Users and Domains. I want to create a Relationcreate a Order in my orderline page i get a error that the method is undefinedwhen i create a OrderLine and then edit it and make a Order (inside the orderline) i get this error how to show a MorphOne table in filament Table?I am struggling to access MorphOne relationship data in my table. I have Member model with MorphOne