'datetime', 'validity' => 'datetime', 'approval_on' => 'datetime', 'estimate_no' => 'integer', ]; const APPROVAL_STATUS = [ 1 => 'Pending', 2 => 'Approved', 3 => 'Rejected', ]; public function customer() { return $this->belongsTo(Customer::class, 'customer_id'); } public function approver() { return $this->belongsTo(Customer::class, 'approval_by'); } public function estimateDetails() { return $this->hasMany(EstimateDetail::class, 'estimate_id'); } public static function getFillableFields() { return (new self())->fillable; } }