feat: 前端分離+功能api化

1. 新增資產管理CRUD、googleOAuth登入
2. 更改原記帳controller
This commit is contained in:
2026-06-25 14:19:07 +08:00
parent 7bb931c97b
commit 85972f950c
70 changed files with 4754 additions and 1520 deletions

View File

@@ -15,11 +15,19 @@ class DatabaseSeeder extends Seeder
*/
public function run(): void
{
// User::factory(10)->create();
\App\Models\User::updateOrCreate(
['email' => 'henry194557@gmail.com'], // 換成你的 Google 登入 email
[
'name' => 'Henry',
'google_id' => '', // 可以先隨便填
'password' => bcrypt('password'),
]
);
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
$this->call([
AccountSeeder::class,
InvestmentHoldingSeeder::class,
InvestmentTransactionSeeder::class,
]);
}
}