© 2026 Hedgehog Software, LLC

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

Select with relationship default

Select::make('customer_group_id')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.customer_group_id'))
                                    ->relationship('customer_group', 'name')
                                    ->preload()
                                    ->multiple()
                                    ->searchable()
                                    ->native(false),
Select::make('customer_group_id')
                                    ->label(__('nlmn-customer-module::customer.customer_resource.customer_group_id'))
                                    ->relationship('customer_group', 'name')
                                    ->preload()
                                    ->multiple()
                                    ->searchable()
                                    ->native(false),


How do i say i want the default group to be "geral" that has ID 1
Solution
->default([1])
Jump to solution
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

Select default relationship
FilamentFFilament / ❓┊help
2y ago
default select on relationship
FilamentFFilament / ❓┊help
3y ago
Select with relationship and default value
FilamentFFilament / ❓┊help
2y ago
Select relationship
FilamentFFilament / ❓┊help
3y ago