Part 27 - Install tymon/jwt-auth into Laravel 6 [How to use TDD to build a REST API in Laravel] @StudyStreamPlus
Part 27 - Install tymon/jwt-auth into Laravel 6 [How to use TDD to build a REST API in Laravel]  @StudyStreamPlus
Uploaded November 2019 | Updated December 2026, 32 minutes ago
So we are now ready to start implementing JWT Authentication. We will be installing a package to help us with this. Please forgive me if I am pronounce this incorrectly. The package is called jwt-auth by Sean Tymon. The latest version of this package is required for Laravel 6. Let’s install it.

Open your terminal and type the following command:
composer require tymon/jwt-auth:1.0.0-rc.5

I am not sure how stable this package is as of recording this video, but it will be fine for the purposes of this project. So be aware when using it in production.

To complete the installation, we need to run the following artisan command which comes with the package.
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"

The command will have copied the configuration file. In this configuration file, we have access to various settings. For now, we are interested in the secret which will be used for signing our tokens. Notice it is referencing an env variable that does not exist.

We need to run the following
php artisan jwt:secret

This command will generate a key and add it to our env file. We now have the package installed. In the next video, we will use.

Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ

2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelBWatch this course in full here:
youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr
Part 27 - Install tymon/jwt-auth into Laravel 6 [How to use TDD to build a REST API in Laravel]Codeception Actors, Modules and Helpers - Tutorial [2/6]GCSE Computer Science Python #3 - Sequence and SelectionWeb Developer Interview Questions - How to optimise page load?Git Flow Part 3 - Learn Git Flow commands | How to use Git Flow TutorialGit Flow Part 2 - Using Git Flow in Source Tree TutorialThe Grep Command in Bash | How to search files and directories | Tutorial LinuxHow to change eye colour - Photoshop CC TutorialGCSE Computer Science Python #6 - Casting and String Manipulation
StudyStream+ |

Part 27 - Install tymon/jwt-auth into Laravel 6 [How to use TDD to build a REST API in Laravel]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER