feat: add GeneratesUniqueSlug class for unique slug generation
feat: create PostCategoryFactory for generating post category data feat: create PostFactory for generating post data feat: add retry_requested_at column to services table feat: add vcenter provisioning fields to products table feat: add module_host_id to os table feat: create email_notification_templates table for email templates feat: add scenario and format fields to template table feat: add admin fields to transactions table fix: update ticket table columns and types feat: add uuid to ticket table and backfill existing records fix: make ticket_reply user_id nullable feat: create notifications table for user notifications fix: make ticket uuid nullable feat: create post_categories table for blog categories feat: create posts table for blog posts feat: add invoice email template for PDF generation
This commit is contained in:
+20
-1
@@ -13,12 +13,31 @@ class Template extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'type_id',
|
||||
'scenario',
|
||||
'format',
|
||||
'invoice_template_id',
|
||||
'name',
|
||||
'subject',
|
||||
'message',
|
||||
'status'
|
||||
'status',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'status' => 'integer',
|
||||
];
|
||||
|
||||
public const SCENARIOS = [
|
||||
'vm_credentials' => 'Khởi tạo dịch vụ',
|
||||
'renewal_reminder' => 'Nhắc gia hạn',
|
||||
'news_notification'=> 'Thông báo tin tức',
|
||||
'invoice_pdf' => 'Hoá đơn điện tử',
|
||||
];
|
||||
|
||||
public function invoiceTemplate()
|
||||
{
|
||||
return $this->belongsTo(self::class, 'invoice_template_id');
|
||||
}
|
||||
|
||||
public function type()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\Type::class);
|
||||
|
||||
Reference in New Issue
Block a user