diff --git a/Entities/Media.php b/Entities/Media.php index 68aa7cc..210b6aa 100755 --- a/Entities/Media.php +++ b/Entities/Media.php @@ -16,6 +16,13 @@ class Media extends BaseModel */ protected $fillable = ['name']; + /** + * The fields that are to be render when performing relationship queries. + * + * @var array + */ + public $rec_names = ['name']; + /** * List of tables names that are need in this model during migration. * @@ -48,7 +55,7 @@ public function listTable(): ListTable /** * Function for defining list of fields in form view. - * + * * @return FormBuilder */ public function formBuilder(): FormBuilder @@ -64,7 +71,7 @@ public function formBuilder(): FormBuilder /** * Function for defining list of fields in filter view. - * + * * @return FormBuilder */ public function filter(): FormBuilder