Looking to hire Laravel developers? Try LaraJobs

simple-jwt-laravel maintained by lapix

Description
Package to handling the JWT Authentication with Laravel and SimplJWT
Last update
2026/06/12 14:16 (dev-main)
Links
Downloads
132

Comments
comments powered by Disqus

Simple JWT Laravel

Installation

You should implements the following interface and bind it.

  1. First, publish the package asserts: Configuration and Service Provider.
php artisan vendor:publish --tag=simple-jwt
  1. You should implement the following interfaces:
  • Lapix\SimpleJwt\SubjectRepository
  • Lapix\SimpleJwt\ClaimsHandler
  1. Add the service provider to the file /config/app.php.

  2. Generate a new key pair using the command php artisan simple-jwt:keys and add the following environment variables:

  • JWT_PRIVATE_KEYS: Private key.
  • JWT_PUBLIC_KEYS: Public key.
  • JWT_IDS: An arbitrary value, it used to identify the key.
  1. Change the configuration in the file config/simple-jwt.php as you want.