platform icon indicating copy to clipboard operation
platform copied to clipboard

Relation field with multiple scopes

Open plamenradev opened this issue 2 years ago • 0 comments

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.

plamenradev avatar Mar 27 '23 10:03 plamenradev