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

@@ -0,0 +1,23 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\User;
use Google\Client as GoogleClient;
use App\Jobs\FetchAndParseGmailInvoices;
class DebugGmailJob extends Command
{
protected $signature = 'gmail:debug-job';
protected $description = '繞過Job快取直接在終端機打印最新未讀信件';
public function handle()
{
$this->info("🔄 正在讀取 User ID 1 的 Google 憑證...");
$user = User::find(1);
app(FetchAndParseGmailInvoices::class, ['user' => $user])->handle(new \App\Services\GmailParserService());
}
}