wire auth api
This commit is contained in:
parent
9e70fae38d
commit
eff7c5c281
12 changed files with 137 additions and 19 deletions
|
|
@ -2,23 +2,29 @@
|
|||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Auth\BcryptPasswordHasher;
|
||||
use App\Auth\Clock;
|
||||
use App\Auth\PasswordHasher;
|
||||
use App\Auth\RandomTokenGenerator;
|
||||
use App\Auth\SystemClock;
|
||||
use App\Auth\TokenGenerator;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
$this->app->bind(
|
||||
PasswordHasher::class,
|
||||
BcryptPasswordHasher::class,
|
||||
);
|
||||
$this->app->bind(
|
||||
TokenGenerator::class,
|
||||
RandomTokenGenerator::class,
|
||||
);
|
||||
$this->app->bind(
|
||||
Clock::class,
|
||||
SystemClock::class,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue