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
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
![Codeception Actors, Modules and Helpers - Tutorial [2/6]
In this video tutorial I introduce you to Codeception Actors, Modules and Helpers. The purpose of is to dive deeper into Codeception. In this series we will be using Codeception with Laravel.
Reval Govender
LinkedIn: https://uk.linkedin.com/in/reval-govender-0ba14860
Twitter: https://twitter.com/RevalGovender
My site: http://revgov.co.uk/
1. Prerequisite - 00:17
2. Introduction - 00:30
3. Actors - 01:58
4. Modules - 01:07
5. Adding Modules - 02:27
6. Helpers - 03:05
Laravel Tutorials:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB
PHP Developer Tutorials:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0Fy93MCcC1Co0BuccJk6QqX
A Journey To TDD the tutorial series:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0EWSkkE6Llxaw7sxnsxdVWB Codeception Actors, Modules and Helpers - Tutorial [2/6]](https://i.ytimg.com/vi/wXEQWPrBnyU/mqdefault.jpg)






