Allows you to use Google to authenticate users of your Laravel application.
To get the latest version of cachebuster simply require it in your composer.json file.
Note: This package depends on a non-packagist package, google-api-php-client, so you will need to manually add
the following repository definition to your project's composer.json file before attempting to run composer update
or composer install:
Or you can just create a new file in that folder and only override the settings you need.
The settings themselves are documented inside config.php.
To make your configuration apply only to a particular environment, put your configuration in an environment folder such
To enable Google-based authentication for your app, you first need to select the 'google' authentication driver. Open
up app/config/auth.php and edit the driver key:
'driver' => 'google',
For Google authentication, you need to add a Login page to your app which contains a link for the user to click on that
will initiate the authentication process. The simplest way of doing that is to add the following to your routes.php
Then you need to add the 'before' filter 'google-finish-authentication' to the route that google redirects to after
authentication is complete. Make sure this filter is applied first, before the 'auth' filter - otherwise the 'auth'
filter will send the user back to the login page and their session will be lost.