© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
PippoPizza

Attempt to read property "budget" on null

i'm having this error ' Attempt to read property "budget" on null ' when trying to submit this form.

The form shows correctly the numbers and also min and max, but wen i try to submit it throws the error.

            TextInput::make('quote')
                ->required()
                ->numeric()
                ->maxValue((int)$project->budget)
                ->minValue((int)$project->budget*0.4)
                ->prefixIcon('heroicon-s-currency-euro')
                ->prefix('Min. '.Number::currency($project->budget*0.4, 'EUR', 'fr'))
                ->suffix('Max. '.Number::currency($project->budget, 'EUR', 'fr'))
                ->label('Budget'),
            Select::make('project_id')
            ->required()
            ->relationship(
                name: 'project',
                titleAttribute: 'slug',
                modifyQueryUsing: fn (Builder $query) =>
                    $query->where('id', request()->route()->parameter('project'))
                )
                ->preload()
                ->label('Progetto'),
            TextInput::make('quote')
                ->required()
                ->numeric()
                ->maxValue((int)$project->budget)
                ->minValue((int)$project->budget*0.4)
                ->prefixIcon('heroicon-s-currency-euro')
                ->prefix('Min. '.Number::currency($project->budget*0.4, 'EUR', 'fr'))
                ->suffix('Max. '.Number::currency($project->budget, 'EUR', 'fr'))
                ->label('Budget'),
            Select::make('project_id')
            ->required()
            ->relationship(
                name: 'project',
                titleAttribute: 'slug',
                modifyQueryUsing: fn (Builder $query) =>
                    $query->where('id', request()->route()->parameter('project'))
                )
                ->preload()
                ->label('Progetto'),


Any clue?
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

Attempt to read property "budget" on null
FilamentFFilament / ❓┊help
3y ago
Attempt to read property "model" on null.
FilamentFFilament / ❓┊help
3y ago
`Attempt to read property "form" on null` error in test
FilamentFFilament / ❓┊help
3y ago
SpatieMediaLibraryImageEntry error Attempt to read property "media" on null on RepeaterEntry
FilamentFFilament / ❓┊help
3y ago