Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 2 KB

README.md

File metadata and controls

60 lines (34 loc) · 2 KB

Custom API Token authentication for Laravel

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

About

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.

Installation

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

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Support

Buy Me A Coffee

ko-fi

License

The MIT License (MIT). Please see License File for more information.