Tailor\Traits\BlueprintRelationModel
Overview
BlueprintRelationModel adds blueprint support for relations
Usage:
In the model class definition add:
use \Tailor\Traits\BlueprintRelationModel;
public $belongsToMany = [..., 'blueprint' => '6947ff28-b660-47d7-9240-24ca6d58aeae'];
Protected Properties
protected array $blueprintRelationDefinitions
Public Methods
public initializeBlueprintRelationModel()
public initializeBlueprintRelationModel(): void
initializeBlueprintRelationModel trait for the model.
Protected Methods
protected defineBlueprintRelationModels()
protected defineBlueprintRelationModels(): void
defineBlueprintRelationModels will spin over every relation and check for pivotSortable mode