You've already forked Atomcms-edit
Improvements: fix duplicate seeder, add missing seeders, remove redundant $with, add migration down(), optimize queries
This commit is contained in:
@@ -111,7 +111,8 @@ class InstallationController extends Controller
|
||||
|
||||
private function getSettingsForStep(int $step): Collection
|
||||
{
|
||||
$settingsData = array_chunk(WebsiteSetting::all()->pluck('key')->toArray(), (int) ceil(WebsiteSetting::count() / 4));
|
||||
$allKeys = WebsiteSetting::pluck('key')->toArray();
|
||||
$settingsData = array_chunk($allKeys, (int) ceil(count($allKeys) / 4));
|
||||
|
||||
$settings = match ($step) {
|
||||
1 => $settingsData[0] ?? [],
|
||||
|
||||
Reference in New Issue
Block a user