Skip to content

Commit

Permalink
Update data fields panel on nova resources #42
Browse files Browse the repository at this point in the history
  • Loading branch information
huntermontell authored Mar 18, 2021
1 parent 34ec6e8 commit 2747814
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Nova/GmbHour.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ public function fields(Request $request)

protected function dataFields(): array
{
return [
ID::make(),
DateTime::make('Created At')->exceptOnForms(),
nova('user') ? BelongsTo::make('Creator', 'creator', nova('user'))->exceptOnForms() : null,
];
return array_merge(
parent::dataFields(),
$this->creatorDataFields(),
);
}
}

0 comments on commit 2747814

Please sign in to comment.