![]() Server : Apache System : Linux server2.thebrownbagmedia.com 4.18.0-553.34.1.el8_10.x86_64 #1 SMP Wed Jan 8 09:40:06 EST 2025 x86_64 User : topnotchcv ( 1029) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/topnotchcv/public_html/app/Models/ |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Support extends Model { protected $fillable = [ 'subject', 'assign_user', 'priority', 'status', 'attachment', 'created_id', 'parent_id', 'description', ]; public static $priority = [ 'low' => 'Low', 'medium' => 'Medium', 'high' => 'High', 'critical' => 'Critical', ]; public static $status = [ 'pending' => 'Pending', 'open' => 'Open', 'close' => 'Close', 'on_hold' => 'On Hold', ]; public function createdUser() { return $this->hasOne('App\Models\user', 'id', 'created_id'); } public function assignUser() { return $this->hasOne('App\Models\user', 'id', 'assign_user'); } public function reply() { return $this->hasMany('App\Models\SupportReply', 'support_id', 'id'); } }