Improvements: fix duplicate seeder, add missing seeders, remove redundant $with, add migration down(), optimize queries
This commit is contained in:
1 parent
9bb2e4246b
commit
6eeb85fcf2
9 files changed
+35
-15
No files matched your search
@@ -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