© 2026 Hedgehog Software, LLC

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

relation ship undefined method

error Call to undefined method App\Models\Test01::users()
test01Resource
use App\Filament\Resources\test01Resource\RelationManagers\UsersRelationManager;
use App\Filament\Resources\test01Resource\RelationManagers\UsersRelationManager;

inside
Select::make('Bedrijf_user')->relationship('users', 'name')->searchable()->required(),
Select::make('Bedrijf_user')->relationship('users', 'name')->searchable()->required(),

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

and here are the file name that i am using
image.png
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 using Relation Manager Attach
FilamentFFilament / ❓┊help
3y ago
Dynamic save for form relation ship
FilamentFFilament / ❓┊help
3y ago
afterStateHydrated -undefined Method
FilamentFFilament / ❓┊help
3mo ago
undefined method hasRole
FilamentFFilament / ❓┊help
16mo ago