© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
Matthew

record in Create Record is null

According to the docs, this should output the record before it gets created, however it shows up null.
class CreateTest extends CreateRecord
{
    protected static string $resource = TestResource::class;

    protected function beforeCreate(): void
    {
        $record = $this->getRecord();
        dd($record);
    }
}
class CreateTest extends CreateRecord
{
    protected static string $resource = TestResource::class;

    protected function beforeCreate(): void
    {
        $record = $this->getRecord();
        dd($record);
    }
}

Any idea why?
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

$record is null in table
FilamentFFilament / ❓┊help
2y ago
$record is null in selectColumn
FilamentFFilament / ❓┊help
3y ago
$record is null inside hidden()
FilamentFFilament / ❓┊help
3y ago
Programatically create record?
FilamentFFilament / ❓┊help
3y ago