heading(ScriptResource::getPluralLabel()) ->modelLabel(ScriptResource::getLabel()) ->recordTitleAttribute(VideoScript::ATTRIBUTE_PATH) ->columns(ScriptResource::table($table)->getColumns()) ->defaultSort(VideoScript::TABLE . '.' . VideoScript::ATTRIBUTE_ID, 'desc') ); } /** * Get the filters available for the relation. * * @return array * * @noinspection PhpMissingParentCallCommonInspection */ public static function getFilters(): array { return array_merge( [], ScriptResource::getFilters(), ); } /** * Get the actions available for the relation. * * @return array * * @noinspection PhpMissingParentCallCommonInspection */ public static function getActions(): array { return array_merge( parent::getActions(), ScriptResource::getActions(), ); } /** * Get the bulk actions available for the relation. * * @return array * * @noinspection PhpMissingParentCallCommonInspection */ public static function getBulkActions(): array { return array_merge( parent::getBulkActions(), ScriptResource::getBulkActions(), ); } /** * Get the header actions available for the relation. * * @return array * * @noinspection PhpMissingParentCallCommonInspection */ public static function getHeaderActions(): array { return array_merge( parent::getHeaderActions(), ScriptResource::getHeaderActions(), ); } /** * Determine whether the related model can be created. * * @return bool */ protected function canCreate(): bool { return false; } }