}
/**
- * Display a listing of the settings.
+ * Handle requests to the settings index path.
*/
- public function index(string $category)
+ public function index()
+ {
+ return redirect('/settings/features');
+ }
+
+ /**
+ * Display the settings for the given category.
+ */
+ public function category(string $category)
{
$this->ensureCategoryExists($category);
$this->checkPermission('settings-manage');
}
// Clear logo image if requested
- if ($category === 'customization' && $request->get('app_logo_reset', null)) {
+ if ($category === 'customization' && $request->get('app_logo_reset', null)) {
$this->imageRepo->destroyByType('system');
setting()->remove('app-logo');
}
$this->logActivity(ActivityType::SETTINGS_UPDATE, $category);
$this->showSuccessNotification(trans('settings.settings_save_success'));
- return redirect("/settings/${category}");
+ return redirect("/settings/{$category}");
}
protected function ensureCategoryExists(string $category): void