wire repository and utility bindings

AppServiceProvider binds Clock -> SystemClock, TokenGenerator ->
RandomTokenGenerator, PasswordHasher -> BcryptPasswordHasher.
new RepositoryServiceProvider binds UserRepository ->
EloquentUserRepository, SessionRepository ->
EloquentSessionRepository. bootstrap/providers.php registers
both. verified container resolves: app(Clock::class) returns
SystemClock. migrations create users + sessions tables with
proper unique/foreign-key/index constraints (sqlite roundtrip
confirmed).
This commit is contained in:
yisroel 2026-05-06 15:18:06 +03:00
parent ca8a2066de
commit 2e3265e568
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 35 additions and 7 deletions

View file

@ -1,7 +1,9 @@
<?php
use App\Providers\AppServiceProvider;
use App\Providers\RepositoryServiceProvider;
return [
AppServiceProvider::class,
RepositoryServiceProvider::class,
];