Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: usersテーブルのmigrationとUserモデルの追加 / Add users table migration and User model
feat: add User domain layer / Userドメイン層の追加
feat: add User registration infrastructure layer
…eateUserCommand and UserDtoFactory
…_layer feat: add User registration application layer
…n_layer feat: add User registration presentation layer / ユーザー登録プレゼンテーション層の追加
feat: add Codecov integration for PR coverage reporting / CodecovによるPRカバレッジレポートの追加
This was
linked to
issues
Jul 17, 2026
Closed
Closed
fix: enable CORS credentials and externalize frontend origin for Sanctum SPA auth
…layer feat: implement Presentation layer for GET /api/v1/user/me / ログイン中ユーザー取得APIのPresentation層実装
feat: add GET /api/v1/user/me endpoint / ログイン中ユーザー取得APIの追加
…tateful fix: include frontend origin in SANCTUM_STATEFUL_DOMAINS / Sanctumのstateful対象にフロントのオリジンを追加
fix: enable Sanctum SPA cookie auth for the frontend origin / フロントのオリジンに対するSanctum Cookie認証の有効化
fix: support partial updates in PATCH /api/v1/users/{id} / ユーザー更新APIの部分更新対応
fix: make subscription_tier optional in POST /api/v1/user/create / ユーザー作成APIのsubscription_tier任意化
fix: default subscription_tier to free in SubscriptionFactory when omitted / SubscriptionFactoryでsubscription_tier省略時にfreeへデフォルト設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation / 目的
This is the parent PR that brings the entire User feature epic from
feat/userintomain: user registration, authentication (login/logout/me), and full CRUD (find/update/delete), along with the bug fixes discovered while building each layer. Before this PR,mainhas no User resource at all.本PRはUser機能一式(登録・認証・CRUD)を
feat/userからmainへ統合する親PRです。登録、認証(ログイン/ログアウト/me)、CRUD(検索/更新/削除)に加え、各層の実装中に見つかったバグ修正も含みます。現状mainにはUserリソースが存在しないため、これが導入のトリガーとなるPRです。What I have done / 実施内容
User Domain & Registration
UserEntity,AgeRange,Subscription/SubscriptionTiervalue objects,Emailvalue object,userstable migration (User Definition #399)POST /api/v1/user/create(User Registration API #400)Authentication
POST /api/v1/user/login— Sanctum token issuance (User LogIn #405)POST /api/v1/user/logout— token revocation (User Logout #408)GET /api/v1/user/me— fetch the authenticated user (feat: Add GET /v1/user/me endpoint to fetch the authenticated user / ログイン中ユーザー自身の情報を取得するAPIの追加 #542)User CRUD
GET /api/v1/users/{id}(User findById API #507)PATCH /api/v1/users/{id}(User Update API #500)DELETE /api/v1/users/{id}(User Delete API #514)Bug fixes bundled in this branch
subscription_tieroptional end-to-end (CreateUserCommand,CreateUserUseCase, and the Domain-layer factories), defaulting tofreewhen omitted (Bug: POST /api/v1/user/create fails because subscription_tier is required / ユーザー作成APIがsubscription_tier必須のため失敗する #549)PATCH /api/v1/users/{id}now supports partial updates (previously required every field);UserController::updateUsernow catches\Throwableinstead of\Exceptionso\ValueError(e.g. invalidage_range) no longer leaks a raw debug pagedd()debug statement fromUserController::createUserSupporting infra
magostatic analysis CITest Results / テスト結果
heritage-mysql-test) for each repository methodlaravel 8.*/9.*/10.*×php 7.4/8.0/8.1/8.2),mago, and Codecov all passingCloses #399, #400, #405, #408, #500, #507, #514, #540, #542, #549