belongsTo(User::class); } public function transaction(){ return $this->hasMany(InvoiceTransaction::class)->where('status',1); } function attachments(){ return $this->morphMany(Attachment::class,'attachmentable'); } public $adminFields=[ 'content'=>[ 'type'=>'string', 'fa_name'=>'توضیحات', 'col'=>6, 'required'=>false, 'data'=>[] ], ]; }