An open API service indexing awesome lists of open source software.

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

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