Đóng gói cuối tuần

This commit is contained in:
2026-04-18 04:46:01 +00:00
parent 761b34916b
commit 3cef1c40df
37 changed files with 1266 additions and 301 deletions

View File

@@ -10,11 +10,15 @@ class Project extends Model
{
use HasUuids, HasFactory;
protected $guarded = []; // Cho phép lưu tất cả các cột
protected $guarded = [];
// Khai báo mối quan hệ: 1 Dự án có nhiều Sản phẩm
public function products()
{
return $this->hasMany(Product::class);
}
}
public function paymentTemplates()
{
return $this->hasMany(PaymentTemplate::class);
}
}