PHPackages                             coloredcow/laravel-gsuite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. coloredcow/laravel-gsuite

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

coloredcow/laravel-gsuite
=========================

A Laravel package to setup Google OAuth and GSuite Admin SDK

v1.0.0(7y ago)183.4k8[3 issues](https://github.com/ColoredCow/laravel-gsuite/issues)[1 PRs](https://github.com/ColoredCow/laravel-gsuite/pulls)MITPHPPHP ^7.1CI failing

Since Aug 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ColoredCow/laravel-gsuite)[ Packagist](https://packagist.org/packages/coloredcow/laravel-gsuite)[ Docs](https://github.com/coloredcow/laravel-gsuite)[ RSS](/packages/coloredcow-laravel-gsuite/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

Laravel GSuite
==============

[](#laravel-gsuite)

A Laravel package to setup Google OAuth and GSuite Admin SDK.

Installation
------------

[](#installation)

You can install the package using composer

```
composer require coloredcow/laravel-gsuite

```

Publish the configurations

```
php artisan vendor:publish --provider="ColoredCow\LaravelGSuite\Providers\GSuiteServiceProvider" --tag="config"

```

Setting up Google Oauth
-----------------------

[](#setting-up-google-oauth)

Update your .env file with the Google OAuth 2.0 credentials

```
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_CLIENT_CALLBACK=your_google_callback_url

```

**NOTE:** If you wish to restrict users to your organization's domain, add to your .env

```
GOOGLE_CLIENT_HD=your_domain

```

Inside your `app/Http/Controllers/Auth/LoginController.php`, use the package trait `GSuiteLogin`

```
