moonshine-software / moonshine

Laravel Admin panel and more. Simple for beginners and powerful for experts. Using Blade, Alpine.js and Tailwind CSS.
https://moonshine-laravel.com
MIT License
797 stars 104 forks source link

2.x force async search #1320

Closed DissNik closed 3 weeks ago

DissNik commented 3 weeks ago
BelongsTo::make('Country', 'country',  resource: new CountryResource()),
BelongsTo::make('Region', 'region',  resource: new RegionResource())
    ->associatedWith('country_id')
    ->asyncOnInit(),
BelongsTo::make('City', 'city',  resource: new CityResource())
    ->associatedWith('region_id')
    ->asyncOnInit(),