This commit is contained in:
ct
2025-07-03 00:48:06 +08:00
parent 0aa0d9569f
commit db892fc4f5
26 changed files with 807 additions and 59 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Helpers\FirstParty\Credits\CreditsService;
use Illuminate\Support\Facades\Auth;
class UserAccountController extends Controller
@@ -19,8 +20,8 @@ public function index()
'user' => $user,
'billing' => [
'provider' => 'stripe',
'portal' => Auth::user()->billingPortalUrl(route('home'))
]
],
'credits' => CreditsService::balance(Auth::id()),
],
],
]);