© 2026 Hedgehog Software, LLC

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

Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::save()

Hi! Hoping for some guidance.

I can edit a form field and it will save no problem, but creating a new entry throws this error:

Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::save()
Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::save()


Entry:
Forms\Components\TextInput::make('member_id'),`
Forms\Components\TextInput::make('member_id'),`


Model:
public function member(): BelongsTo
    {
        return $this->belongsTo(Member::class);
    }
public function member(): BelongsTo
    {
        return $this->belongsTo(Member::class);
    }


Thank you.
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

Call to undefined method Illuminate\Database\Eloquent\Relations\MorphOne::getQualifiedOwnerKeyName()
FilamentFFilament / ❓┊help
2y ago
Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsToMany::getOwnerKeyName()
FilamentFFilament / ❓┊help
3y ago
Call to undefined method Illuminate\Database\Eloquent\Builder::withoutTrashed()
FilamentFFilament / ❓┊help
3y ago
[phpStan] Illuminate\Database\Eloquent\Model::$id.
FilamentFFilament / ❓┊help
2y ago