Skip to content

Instantly share code, notes, and snippets.

View WyattCast44's full-sized avatar
πŸ‘¨β€πŸš€
Space is the place πŸš€

Wyatt Castaneda WyattCast44

πŸ‘¨β€πŸš€
Space is the place πŸš€
View GitHub Profile
@WyattCast44
WyattCast44 / google-example.php
Created March 17, 2019 06:18 — forked from fillup/google-example.php
Example of using Google Admin SDK Directory API to get an individual or list of users.
<?php
// Updated 2018-01-24 to work with google/apiclient:^2.0
/*
* Easiest to use composer to install google-api-php-client and generate autoloader
* If you dont want to use composer you can manually include any needed files
*/
include_once 'vendor/autoload.php';
/*
* Email address for admin user that should be used to perform API actions
GET index
GET create
POST store
GET show
GET edit
PUT/PATCH update
DELETE destroy
@WyattCast44
WyattCast44 / laravel-passport-routes.v7.2.txt
Last active March 5, 2019 04:52
Just a nice reference for the routes registered by Laravels Passport Package
METHOD | URI | NAME | ACTION | MIDDLEWARE(S)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GET|HEAD | oauth/authorize | passport.authorizations.authorize | Laravel\Passport\Http\Controllers\AuthorizationController@authorize | web,auth
POST | oauth/authorize | passport.authorizations.approve | Laravel\Passport\Http\Controllers\ApproveAuthorizationController@approve | web,auth
DELETE | oauth/authorize | passport.authorizations.deny | Laravel\Passport\Http\Controllers\DenyAuthorizationController@deny | web,auth
GET|HEAD | oauth/clients | passport.clients.index | Laravel\Passport\Http\Controllers\Cl
@WyattCast44
WyattCast44 / Math.php
Created December 2, 2018 03:39 — forked from jgrossi/Math.php
Math class from Taylor Otwell. Thanks to @brad ([email protected]) for the class content.
<?php
class Math {
/**
* The base.
*
* @var string
*/
private static $base = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';