Skip to content

A demo for a custom Laravel API token authentication tutorial

License

Notifications You must be signed in to change notification settings

ReeceM/laravel-token-demo

Repository files navigation

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 zsh.rce@gmail.com 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.

About

A demo for a custom Laravel API token authentication tutorial

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published