Skip to content

Commit

Permalink
adding $rec_name to make it auto show relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Aug 12, 2023
1 parent fad5563 commit 526441b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Entities/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class Media extends BaseModel
*/
protected $fillable = ['name'];

/**
* The fields that are to be render when performing relationship queries.
*
* @var array<string>
*/
public $rec_names = ['name'];

/**
* List of tables names that are need in this model during migration.
*
Expand Down Expand Up @@ -48,7 +55,7 @@ public function listTable(): ListTable

/**
* Function for defining list of fields in form view.
*
*
* @return FormBuilder
*/
public function formBuilder(): FormBuilder
Expand All @@ -64,7 +71,7 @@ public function formBuilder(): FormBuilder

/**
* Function for defining list of fields in filter view.
*
*
* @return FormBuilder
*/
public function filter(): FormBuilder
Expand Down

0 comments on commit 526441b

Please sign in to comment.