Add initial Todo items and CalDAV sync
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user