feat: Implement client status validation on login, refine password rules, and simplify customer resource status.

This commit is contained in:
pbao9
2026-03-10 16:27:23 +07:00
parent cf0f2cf686
commit 7fdcc01027
18 changed files with 831 additions and 12 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
class InvoiceAttachment extends Model
{
protected $table = 'invoice_attachments';
protected $guarded = [];
protected $appends = ['url'];
public function invoice()
{
return $this->belongsTo(Invoice::class);
}
public function getUrlAttribute(): string
{
return Storage::disk($this->disk)->url($this->path);
}
}