'integer', 'crop_horizontal' => 'array', 'crop_vertical' => 'array', 'cropped_attachment_id' => 'integer', ]; } public function attachment(): BelongsTo { return $this->belongsTo(Attachment::class); } public function croppedAttachment(): BelongsTo { return $this->belongsTo(Attachment::class, 'cropped_attachment_id'); } }