arrow-web-sol/laravel-jwt-auth
Larablocks Analysis
arrow-web-sol/laravel-jwt-auth works with Laravel 9, 10 and 11 (latest release v0.6.1, Jul 4, 2024), all past end of life (the last on Mar 12, 2026): no more fixes, even for security.
Laravel 5 to 8 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 9, 10 and 11, past end of life since Mar 12, 2026
- No release in the last 12 months (last: Jul 4, 2024)
- 7 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jul 4, 2024.
- No releases in the last 12 months.
- First released: Mar 3, 2016.
- Monthly downloads: 7.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require arrow-web-sol/laravel-jwt-auth |
|
| Latest Version: | v0.6.1 |
| PHP: | 8.0.*|8.1.*|8.2.* |
| Laravel: | 9 · 10 · 11 |
| Older releases: | 5 – 8 |
| License: | MIT |
| Last Updated: | Jul 8, 2024 |
| Links: | GitHub · Packagist |
Laravel JWT Auth
A simple method to authenticate users in Laravel via a JWT - http://jwt.io
A bearer token is taken from the request, this token is then checked using the configured JWT algorithm. If the token is deemed valid, the the request is "authenticated". This package will check to ensure the token was signed using an appropriate key and is valid at the time of the request (iat, nbf and exp claim checks).
A common use case is in authentication in Laravel micro-services. Your auth service (Passport for example) can issue a JWT on successful login. Your other services can then use this package to authenticate requests without touching your auth service. Because a JWT is cryptographicaly signed you can verify the token originated from your auth service and hasn't been tampered with.
Installation
composer require arrow-web-sol/laravel-jwt-auth
Then run
php artisan jwt-auth:publish:config
That creates a jwt-config.php config file, in here you can set the signing method used, hash used, key (hmac only) and the public key (rsa and ecdsa). The key or public key is used to verify the JWT.
NOTE: the jwt-config.php is merged into auth.php as part of the service provider boot process. It adds a guard and provider for 'jwt', which in most cases will never be set nor used. But if you do have a 'jwt' guard and or provider in your auth.php file then be aware this package will override that key.
Middleware
To protect routes, you can now use 'auth:jwt':
Route::middleware('auth:jwt')->get('/user', [UserController::class, 'index']);
Or, to set default auth method, edit config/auth.php
'defaults' => [
'guard' => 'jwt',
The package needs the token to be sent as a bearer token in the authorization header.
Testing
You can use the normal Laravel test methods:
//if jwt isn't your default guard
$this->actingAs($user, 'jwt');
//if jwt is your default guard
$this->actingAs($user);
Although we do this as part of our test suite, you can test the full token flow:
//NOTE: You need the private key set in config to do this for asymetric signatures
$jwtConfig = $this->app()->make(\Arrow\JwtAuth\Contracts\JwtConfiguration::class);
$token = $jwtConfig
->builder()
->issuedBy('https://arrow-web.dev')
->permittedFor('https://example.com')
->identifiedBy(Str::random(12))
->issuedAt(now()->toDateTimeImmutable())
->canOnlyBeUsedAfter(now()->toDateTimeImmutable())
->expiresAt(now()->addHour()->toDateTimeImmutable())
->withClaim('claim-name', 'claim-value')
->getToken($jwtConfig->signer(), $jwtConfig()->signingKey());
$this->withToken($token->toString())
->getJson('/user')
->assertSuccessful();
Alternatives to arrow-web-sol/laravel-jwt-auth
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.6.1 | 8.0.*| | ^9.0| | MIT | |
| v0.6.0 | 8.0.*| | ^9.0| | MIT | |
| v0.5.0 | 8.0.*| | ^9.0| | MIT | |
| v0.4.0 | 8.0.*| | ^9.0 | MIT | |
| v0.3.2 | 8.0.*| | ^9.0 | MIT | |
| v0.3.1 | 8.0.*| | ^9.0 | MIT | |
| v0.3.0 | 8.0.*| | ^9.0 | MIT | |
| v0.2.0 | ^5.1.0| | MIT | ||
| v0.1.7 | ^5.1.0| | MIT | ||
| v0.1.6 | ^5.1.0 | MIT | ||
| v0.1.5 | ^5.1.0 | MIT | ||
| v0.1.4 | ^5.1.0 | MIT | ||
| v0.1.3 | ^5.1.0 | MIT | ||
| v0.1.2 | 5.1.x| | MIT | ||
| v0.1.1 | 5.1.x| | MIT | ||
| v0.1.0 | 5.1.x| | MIT |