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

Watheq's avatar
Level 14

in Laravel filament, how I can add the relation manager to the create page?

I have added this command

 php artisan help make:filament-relation-manager ProductResource tags name

and added in ProductResource

public static function getRelations(): array
    {
        return [
            TagsRelationManager::class
        ];
    }

the relation manager is shown successfully in the edit product page, but not shown in the create page. How I can display it in the create page as well?

0 likes
2 replies
Joel-Sousa's avatar

I managed to show the relationship data in '$form' through:

Fieldset::make('') ->hidden() ->relationship('your relationship ') // ->schema([]),

for some reason you have to have this relationship inside the '$form' I made the relationship using 'getRelations()' but it didn't work

muathye's avatar
muathye
Best Answer
Level 41

You can't add a relation manager on creation page but you can add it on edit page and that because the relation manager rely on $recordId which is not available on creation page

Please or to participate in this conversation.