Skip to content

jiteshdhamaniya/jwt-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Laravel JWT Tests Package for tymon/jwt-auth

GitHub issues GitHub Forks GitHub Stars

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages