© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
3 replies
yohann222

Nested schema in filament v4

Good day everyone,

I’m new to Filament and I’d like to ask if it’s possible (or allowed) to use a nested schema function inside another schema.

Here’s my current setup. I created a tasks schema that returns a table:

public function tasks(Schema $schema): Schema
{
    return $schema->components([
        Table::make()
            // table structure here
    ]);
}
public function tasks(Schema $schema): Schema
{
    return $schema->components([
        Table::make()
            // table structure here
    ]);
}


And I also have a cardSchema:

public function cardSchema(Schema $schema): Schema
{
    return $schema->components([
        // schema here
    ]);
}
public function cardSchema(Schema $schema): Schema
{
    return $schema->components([
        // schema here
    ]);
}


What I’d like to do is reuse the tasks schema inside the cardSchema, something like this:

public function cardSchema(Schema $schema): Schema
{
    return $schema->components([
        $this->tasks
    ]);
}
public function cardSchema(Schema $schema): Schema
{
    return $schema->components([
        $this->tasks
    ]);
}


My question is: Is this the right way to include the tasks schema inside the cardSchema?
If not, could you please suggest the correct approach or best practice for this kind of setup?

I’m still learning Filament and trying to figure out the right patterns. Any advice would be appreciated.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

filament v4 schema
FilamentFFilament / ❓┊help
9mo ago
Filament v4
FilamentFFilament / ❓┊help
6mo ago
Filament v4
FilamentFFilament / ❓┊help
2y ago
Nested slideOuts scrollable in V4
FilamentFFilament / ❓┊help
5w ago