modifyQueryUsing(fn (Builder $query) => $query->with(ReportStepResource::getEloquentQuery()->getEagerLoads())) ->heading(ReportStepResource::getPluralLabel()) ->modelLabel(ReportStepResource::getLabel()) ->recordTitleAttribute(ReportStepResource::getRecordTitleAttribute()) ->columns(ReportStepResource::table($table)->getColumns()) ->defaultSort(ReportStep::TABLE . '.' . ReportStep::ATTRIBUTE_ID, 'desc') ); } /** * Get the filters available for the relation. * * @return array * * @noinspection PhpMissingParentCallCommonInspection */ public static function getFilters(): array { return [ ...ReportStepResource::getFilters(), ]; } /** * Get the actions available for the relation. * * @return array */ public static function getActions(): array { return [ ...parent::getActions(), ...ReportStepResource::getActions(), ]; } /** * Get the bulk actions available for the relation. * * @param array|null $actionsIncludedInGroup * @return array */ public static function getBulkActions(?array $actionsIncludedInGroup = []): array { return [ ...parent::getBulkActions(), ...ReportStepResource::getBulkActions(), ]; } /** * Get the header actions available for the relation. * These are merged with the table actions of the resources. * * @return array */ public static function getHeaderActions(): array { return [ ...parent::getHeaderActions(), ...ReportStepResource::getTableActions(), ]; } }