This is the demo repo for the associated dev.to article and tutorial.
Please find it here on dev.to, Custom Token Authentication for Laravel
This demo application has the token authentication methods described in the tutorial so that you are able to get a running test up and going if you just want to see it in action.
The authentication method behind this app is that you get the API token and it is only visible once off as the hash of that token is stored in the database. This makes it that only one person would have that token.
The method for authenticating the users tokens actually extends the default Laravel token auth.
You can install the package via composer:
git clone https://github.com/ReeceM/laravel-token-demo.git
Then you want to install the composer files:
composer install
Make sure you have a database and settings like the dev.to article explains then run:
php artisan migrate
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.