![]() 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\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Advice extends Model { use HasFactory; protected $fillable=[ 'advice_id', 'client_id', 'advocate_id', 'date', 'matter', 'fee', 'payment_status', 'status', 'description', 'internal_note', 'parent_id', ]; public static $status=[ 'draft'=>'Draft', 'approved'=>'Approved', 'on_hold'=>'On Hold', 'closed'=>'Closed', 'canceled'=>'Canceled', ]; public static $paymentStatus=[ 'unpaid'=>'Unpaid', 'paid'=>'Paid', ]; public function advocates() { return $this->hasOne('App\Models\User','id','advocate_id'); } public function clients() { return $this->hasOne('App\Models\User','id','client_id'); } public function matters() { return $this->hasOne('App\Models\Matter','id','matter'); } }