-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
eg. pivot timestamps/data
ToMany::make('roles')
// meta on the relationship object
// $context->model is still the parent model
->meta([
Meta::make('foo')->get('bar'),
])
// meta on linkage resource identifier objects
// $context->model is the related model
->linkageMeta([
Meta::make('assignedAt')->get(fn($role) => $role->pivot->created_at),
]);
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request