Skip to content

Commit

Permalink
Update resource data fields for status record #27
Browse files Browse the repository at this point in the history
  • Loading branch information
drewroberts authored Mar 18, 2021
1 parent f5def05 commit 12e13ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Nova/StatusRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,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 12e13ca

Please sign in to comment.