'integer', ]; public function getPath() { if (!empty($this->path)) { if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) { return Storage::url($this->path); } return env('APP_URL') . '/storage/' . $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; } }