Skip to content

Instantly share code, notes, and snippets.

Wanny Miarelli wannymiarelli

Block or report user

Report or block wannymiarelli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View LoginController.php
<?php
public function login (Request $request) {
$client = \DB::table('oauth_clients')
->where('password_client', '=', true)
->first();
// more login logci
}
View AppServiceProvider.php
<?php
namespace App\Providers;
use App\Services\TenantManager;
use App\Tenant;
use Illuminate\Support\ServiceProvider;
use Laravel\Passport\Passport;
class AppServiceProvider extends ServiceProvider
@wannymiarelli
wannymiarelli / app.js
Last active Dec 21, 2017
Auth0 ExpressJS
View app.js
const express = require('express');
const bodyParser = require('body-parser');
const axios = require('axios');
const app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
/*
You can’t perform that action at this time.