mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
feat: 前端分離+功能api化
1. 新增資產管理CRUD、googleOAuth登入 2. 更改原記帳controller
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user