mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
get custom field by slug in models
This commit is contained in:
@ -510,4 +510,9 @@ class Estimate extends Model implements HasMedia
|
|||||||
'{ESTIMATE_LINK}' => url('/customer/estimates/pdf/'.$this->unique_hash),
|
'{ESTIMATE_LINK}' => url('/customer/estimates/pdf/'.$this->unique_hash),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getValues($slug)
|
||||||
|
{
|
||||||
|
return $this->getCustomFieldValues($slug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -219,4 +219,9 @@ class Expense extends Model implements HasMedia
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getValues($slug)
|
||||||
|
{
|
||||||
|
return $this->getCustomFieldValues($slug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -446,4 +446,9 @@ class Payment extends Model implements HasMedia
|
|||||||
'{PAYMENT_LINK}' => $this->paymentPdfUrl,
|
'{PAYMENT_LINK}' => $this->paymentPdfUrl,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getValues($slug)
|
||||||
|
{
|
||||||
|
return $this->getCustomFieldValues($slug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -422,4 +422,9 @@ class User extends Authenticatable implements HasMedia
|
|||||||
|
|
||||||
return $companySettings;
|
return $companySettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getValues($slug)
|
||||||
|
{
|
||||||
|
return $this->getCustomFieldValues($slug);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user