$this->id, 'name' => $this->name , 'priority' => $this->whenPivotLoaded('taggables', function () { return $this->pivot->priority; }), ]; } }