Skip to content

Commit

Permalink
Lint code [WEB-2982]
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgarwood committed Jan 21, 2025
1 parent f575513 commit e489ecc
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions app/Http/Controllers/Twill/BaseApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,33 +302,33 @@ protected function getBrowserTableColumns(): TableColumns
return $columns;
}

public function getSideFieldSets(TwillModelContract $model): Form
public function getSideFieldSets(TwillModelContract $model): Form
{
return parent::getSideFieldSets($model)
// For some reason, the side form will not render unless there is a
// field in the default Content fieldset. 🤷
->add(
Input::make()
->name('id')
->disabled()
->note('readonly')
)
->addFieldset(
Fieldset::make()
->id('datahub')
->title('Datahub')
->closed()
->fields([
Input::make()
->name('datahub_id')
->disabled()
->note('readonly'),
Input::make()
->name('source_updated_at')
->disabled()
->note('readonly'),
])
);
// For some reason, the side form will not render unless there is a
// field in the default Content fieldset. 🤷
->add(
Input::make()
->name('id')
->disabled()
->note('readonly')
)
->addFieldset(
Fieldset::make()
->id('datahub')
->title('Datahub')
->closed()
->fields([
Input::make()
->name('datahub_id')
->disabled()
->note('readonly'),
Input::make()
->name('source_updated_at')
->disabled()
->note('readonly'),
])
);
}

protected function transformIndexItems(Collection|LengthAwarePaginator $items): Collection|LengthAwarePaginator
Expand Down

0 comments on commit e489ecc

Please sign in to comment.