芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/design.pulsehost.co.uk/application/app/Models/Item.php
belongsTo('App\Models\User', 'item_creatorid', 'id'); } /** * relatioship business rules: * - the Category can have many Invoices * - the Invoice belongs to one Category */ public function category() { return $this->belongsTo('App\Models\Category', 'item_categoryid', 'category_id'); } /** * Estimates notes formatted in json * @return string */ public function getEstimationNotesEncodedAttribute() { return htmlentities($this->item_notes_estimatation); } /** * Estimates notes check * @return string */ public function getHasEstimationNotesAttribute() { return ($this->item_notes_estimatation != '') ? 'yes' : 'no'; } }