'boolean', 'port' => 'integer', 'keep_days' => 'integer']; } public function exports(): HasMany { return $this->hasMany(InvoiceExport::class); } /** The folder an invoice issued on this date belongs in. */ public function folderFor(?\Illuminate\Support\Carbon $issuedOn): string { $date = $issuedOn ?? now(); return $this->layout === self::BY_DAY ? $date->format('Y-m-d') : $date->format('Y'); } /** Human-readable, for a list and for an error message. */ public function describe(): string { return $this->driver === self::SFTP ? $this->username.'@'.$this->host.':'.$this->path : $this->path; } }