TIDE/backend/app
yisroel e3dddc60aa
add Post persistence: model, migration, eloquent + fake repo
PostModel maps posts table (id, user_id fk, title, body text,
created_at indexed). EloquentPostRepository: create, find,
findByUserId (desc by created_at), findRecent (limit, desc),
delete - chain via ::query() to keep larastan happy.
FakePostRepository sorts on read (defensive copy each return).
cascade-on-delete on user_id so removing a user nukes their
posts.

phpstan.neon suppresses staticMethod.dynamicCall under
app/*/Eloquent*Repository.php - phpstan-strict-rules flags
Eloquent's fluent builder idiom (Model::query()->orderBy())
because the static methods become instance calls mid-chain.
suppression scoped to repo files only so the rule still
applies elsewhere.
2026-05-06 15:22:22 +03:00
..
Auth implement Logout use case 2026-05-06 15:16:03 +03:00
Exceptions add domain exception classes 2026-05-06 14:51:41 +03:00
Http/Middleware implement AuthMiddleware 2026-05-06 15:16:59 +03:00
Post add Post persistence: model, migration, eloquent + fake repo 2026-05-06 15:22:22 +03:00
Providers wire repository and utility bindings 2026-05-06 15:18:06 +03:00
Shared/ValueObject implement EmailAddress value object 2026-05-06 14:52:45 +03:00
User implement SignupUser use case 2026-05-06 15:13:26 +03:00