/
home
/
corsairdevelopme
/
public_html
/
amplivo-console
/
app
/
Models
/
Corsair_Support
/
Upload File
HOME
<?php namespace App\Models\Corsair_Support; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class SupportTemplate extends Model { use HasFactory; protected $connection = 'corsair_support_db'; protected $table = 'support_templates'; protected $fillable = [ 'user_id', 'domain_id', 'category_id', 'language', 'title', 'description', 'is_active' ]; const replaceData = [ 'is_active' => [ 1 => 'Restored', 2 => 'Archived', ], ]; public function category() { return $this->belongsTo(SupportCategory::class, 'category_id'); } public function domain() { return $this->belongsTo(Domain::class, 'domain_id'); } }