James McFadden wrote a nice tutorial on how to use OAuth2 with Laravel applications.

oauth 2

If you’re looking to integrate OAuth2 principles into your Laravel 4/5 application, the oauth2-server-laravel package is a really nice way to do so. It supports multiple grants out of the box, including:

Authorization Code Grant

Implicit Grant

Resource Owner Password Credentials Grant

Client Credentials Grant

Refresh Token Grant