relation ship undefined method

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

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

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

and here are the file name that i am using
image.png
Was this page helpful?