My Token based Guard for Laravel 5.2

Posted 3 years ago by EliasSoares

Hi Folks,

Some time ago, I started developing a API where user should authenticate using email & password, then receive a token to use on subsequent requests and keep authenticated.

Then I've found that Laravel 5.2 allows custom guard drivers, and I've created this simple guard driver to do this.

It's called iget-token, and allows keep using Auth and Gate facades.

For who need this, please take a look. Any uggestions are accepted.


Please sign in or create an account to participate in this conversation.