PHPackages                             richwestcoast/rn-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. richwestcoast/rn-laravel-gsuite

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

richwestcoast/rn-laravel-gsuite
===============================

A Laravel package to setup Google OAuth and GSuite Admin SDK

v1.1.1(4y ago)012MITPHPPHP ^7.1

Since Aug 11Pushed 4y agoCompare

[ Source](https://github.com/richwestcoast/laravel-gsuite)[ Packagist](https://packagist.org/packages/richwestcoast/rn-laravel-gsuite)[ Docs](https://github.com/coloredcow/laravel-gsuite)[ RSS](/packages/richwestcoast-rn-laravel-gsuite/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (7)Versions (6)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`

```
