https://github.com/reecem/laravel-token-demo
A demo for a custom Laravel API token authentication tutorial
https://github.com/reecem/laravel-token-demo
api-demo demo-app laravel php
Last synced: about 1 month ago
JSON representation
A demo for a custom Laravel API token authentication tutorial
- Host: GitHub
- URL: https://github.com/reecem/laravel-token-demo
- Owner: ReeceM
- License: mit
- Created: 2019-12-20T20:47:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T09:41:33.000Z (over 3 years ago)
- Last Synced: 2025-01-21T23:14:36.319Z (over 1 year ago)
- Topics: api-demo, demo-app, laravel, php
- Language: PHP
- Size: 986 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://dev.to/reecem/custom-token-authentication-for-laravel-2aml)
## 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:
```bash
git clone https://github.com/ReeceM/laravel-token-demo.git
```
Then you want to install the composer files:
```bash
composer install
```
Make sure you have a database and settings like the dev.to article explains then run:
```bash
php artisan migrate
```
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email zsh.rce@gmail.com instead of using the issue tracker.
## Credits
- [ReeceM](https://github.com/ReeceM)
- [All Contributors](../../contributors)
## Support
[](https://ko-fi.com/S6S7UQ66)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
