Skip to content

Commit ad0c369

Browse files
Merge pull request #31 from radiate-framework/feature/jwt
Feature/jwt
2 parents 1562689 + 3fb6d80 commit ad0c369

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

config/auth.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
| users are actually retrieved out of your database or other storage
3131
| mechanisms used by this application to persist your user's data.
3232
|
33-
| Supported: "session"
33+
| Supported: "session", "jwt"
3434
|
3535
*/
3636

@@ -40,10 +40,10 @@
4040
'provider' => 'users',
4141
],
4242

43-
# 'api' => [
44-
# 'driver' => 'session',
45-
# 'provider' => 'users',
46-
# ],
43+
'api' => [
44+
'driver' => 'jwt',
45+
'provider' => 'users',
46+
],
4747
],
4848

4949
/*

functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
$app->register(Radiate\Encryption\EncryptionServiceProvider::class);
7979
$app->register(Radiate\Foundation\Providers\FormRequestServiceProvider::class);
8080
$app->register(Radiate\Hashing\HashServiceProvider::class);
81+
$app->register(Radiate\JWT\JwtServiceProvider::class);
8182
$app->register(Radiate\Mail\MailServiceProvider::class);
8283
$app->register(Radiate\Routing\RoutingServiceProvider::class);
8384
$app->register(Radiate\Schedule\ScheduleServiceProvider::class);
@@ -119,6 +120,7 @@
119120
'Gate' => \Radiate\Support\Facades\Gate::class,
120121
'Hash' => \Radiate\Support\Facades\Hash::class,
121122
'Http' => \Radiate\Support\Facades\Http::class,
123+
'JWT' => \Radiate\Support\Facades\JWT::class,
122124
'Mail' => \Radiate\Support\Facades\Mail::class,
123125
'Option' => \Radiate\Support\Facades\Option::class,
124126
'Request' => \Radiate\Support\Facades\Request::class,

0 commit comments

Comments
 (0)