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:
parent
ca8a2066de
commit
2e3265e568
3 changed files with 35 additions and 7 deletions
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
use App\Providers\AppServiceProvider;
|
||||
use App\Providers\RepositoryServiceProvider;
|
||||
|
||||
return [
|
||||
AppServiceProvider::class,
|
||||
RepositoryServiceProvider::class,
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue