https://github.com/dwolfhub/auth-token
Laravel token based authentication package
https://github.com/dwolfhub/auth-token
Last synced: 7 months ago
JSON representation
Laravel token based authentication package
- Host: GitHub
- URL: https://github.com/dwolfhub/auth-token
- Owner: dwolfhub
- License: mit
- Created: 2013-12-29T20:11:14.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-31T16:23:51.000Z (about 12 years ago)
- Last Synced: 2025-05-18T08:45:32.302Z (8 months ago)
- Language: PHP
- Size: 156 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
auth-token
==========
Laravel token based authentication package
## Setup
- Add this to your Autoloaded Service Providers array in config/app.php
```
Dwolf555\AuthToken\AuthTokenServiceProvider
```
- Run migrations using artisan
```bash
php artisan migrate --package="dwolf555/auth-token"
```
- Add a user using your own methods
- Add before filter 'auth-token' to your routes/controllers
- Login via POST /login with fields email/password or username/password