'integer', ]; public function getPath() { if (!empty($this->path)) { return Storage::url($this->path); } return null; } public function order(): BelongsTo { return $this->belongsTo(Order::class); } public function isContract(): bool { return $this->type === self::TYPE_CONTRACT; } public function isMasterContract(): bool { return $this->type === self::TYPE_MASTER; } }