'decimal:2', 'paid' => 'boolean', ]; protected $appends = ['file_url']; public function supplier() { return $this->belongsTo(Supplier::class); } public function getFileUrlAttribute(): ?string { if (!$this->file_path) return null; return asset('storage/' . $this->file_path); } }