jiteshdhamaniya / jwt-tests
Tests for laravel JWT auth tymon/jwt-auth
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jiteshdhamaniya/jwt-tests
Requires
- tymon/jwt-auth: 1.0
This package is auto-updated.
Last update: 2025-10-10 19:36:08 UTC
README
Installation
Before installation please make sure tymon/jwt-auth
composer require tymon/jwt-auth
composer require jiteshdhamaniya/jwt-tests --dev php artisan make:jwt-tests
Edit phpunit.xml file by adding these two lines between <php> tags:
<server name="DB_CONNECTION" value="sqlite"/> <server name="DB_DATABASE" value=":memory:"/>
Alternatively, use different database than sqlite, but also different from the one used for development.
EndPoint
By Default it uses endpoint /api if you do have some other endpoint such as /api/v1 you can change using ```endpoint`` option. like this
php artisan make:jwt-tests --endpoint=api/v1