HandleRelatedBrowsers
trait HandleRelatedBrowsers (View source)
Mimic HandleBrowsers, but when the relation uses HasRelated instead of being a proper model relation.
Properties
protected string|array|(array)|mix|(string|array)) | $relatedBrowsers | All related browsers used in the model, as an array of browser names: [ 'books', 'publications' ]. |
Methods
void
array
Collection
getRelatedBrowsers()
Get all related browser' detail info from the $relatedBrowsers attribute.
void
afterDuplicateHandleRelatedBrowsers(TwillModelContract $old, TwillModelContract $new)
Called from afterReplicate in ModuleRepository.
Details
void
afterSaveHandleRelatedBrowsers(Model $object, array $fields)
No description
array
getFormFieldsHandleRelatedBrowsers(Model $object, array $fields)
No description
protected Collection
getRelatedBrowsers()
Get all related browser' detail info from the $relatedBrowsers attribute.
The missing information will be inferred by convention of Twill.
void
afterDuplicateHandleRelatedBrowsers(TwillModelContract $old, TwillModelContract $new)
Called from afterReplicate in ModuleRepository.