Add initial Todo items and CalDAV sync

This commit is contained in:
2025-12-02 17:32:52 +01:00
parent 2e440edc61
commit a4466a9d2c
18 changed files with 1112 additions and 114 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ public function run(): void
{
$this->call([
PaymentTermsSeeder::class,
SettingsTableSeeder::class
SettingsTableSeeder::class,
TodoTypeSeeder::class,
]);
$user = User::factory()->create([
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\TodoType;
class TodoTypeSeeder extends Seeder
{
public function run(): void
{
$types = ['phoneCall', 'todo', 'email', 'meeting'];
foreach ($types as $name) {
TodoType::firstOrCreate(['name' => $name]);
}
}
}