platform
platform copied to clipboard
Relation field with multiple scopes
Is your feature request related to a problem? Please describe. Applying multiple scopes to relation field.
Describe the solution you'd like It would be great to be able to apply multiple scopes to relation field, for example:
Relation::make('user')
->fromModel(User::class, 'name')
->applyScope('active')
->applyScope('orderByColumn', 'name')
->title('User')
At the moment only the last scope is applied.