Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nhayder's avatar
Level 13

Filament -> How to add $user->documents to user profile page

in my laravel 11 app i'm using filament to build my dashboard, things a going well till i got this issue, let me explain.

I have a $user->documents (hasMeny) relationship that i need to display on the user profile page.

the user profile has multiple tabs (profile, documents, payments, tickets ... etc) under the documents tab and i need to add user documents. return $form ->schema([ Forms\Components\Tabs::make('Tabs') ->tabs([ Forms\Components\Tabs\Tab::make('Profile') ->icon('heroicon-m-user') ->schema([ ... i have the update form for user here ]), Forms\Components\Tabs\Tab::make('Documents') ->icon('heroicon-o-document-text') ->badge(2) ->schema([ ... this is where i need to show a list of user documents inside this tab ]), Forms\Components\Tabs\Tab::make('Trips') ->icon('heroicon-o-truck') ->schema([ // ... ]), ])->columnSpan(2), ]);

the document list should have the ability to preform CRUD operations on the documents model.

how to do that ??? any ideas????

0 likes
0 replies

Please or to participate in this conversation.