finished the upgrade to filament 4. completely revamped the frontend with codex, now it looks great!

This commit is contained in:
2025-11-13 17:42:43 +01:00
parent f59fda588b
commit b311188bc1
138 changed files with 5440 additions and 4105 deletions

View File

@@ -2,9 +2,8 @@
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Settings\GeneralSettings;
use Illuminate\Database\Seeder;
use App\Models\Setting;
class SettingSeeder extends Seeder
{
@@ -13,39 +12,18 @@ class SettingSeeder extends Seeder
*/
public function run(): void
{
$data = [
[
'id' => 1,
'key' => 'gallery_heading',
'value' => 'Eure Bilder aus der Fotoboxx',
'created_at' => '2025-07-30T14:03:55',
'updated_at' => '2025-08-01T11:05:52',
],
[
'id' => 2,
'key' => 'new_image_timespan_minutes',
'value' => '10000',
'created_at' => '2025-08-01T12:46:00',
'updated_at' => '2025-08-01T12:49:52',
],
[
'id' => 3,
'key' => 'image_refresh_interval',
'value' => '30000',
'created_at' => '2025-08-06 13:39:27',
'updated_at' => '2025-08-06 13:46:22',
],
[
'id' => 4,
'key' => 'max_number_of_copies',
'value' => '3',
'created_at' => '2025-08-08 11:05:20',
'updated_at' => '2025-08-08 11:05:20',
],
];
/** @var \App\Settings\GeneralSettings $settings */
$settings = app(GeneralSettings::class);
foreach ($data as $row) {
Setting::updateOrCreate(['id' => $row['id']], $row);
}
$settings->fill([
'gallery_heading' => 'Eure Bilder aus der Fotoboxx',
'new_image_timespan_minutes' => 10_000,
'image_refresh_interval' => 30_000,
'max_number_of_copies' => 3,
'show_print_button' => true,
'selected_printer' => null,
'custom_printer_address' => null,
'default_style_id' => null,
])->save();
}
}
}