Skip to content

Instantly share code, notes, and snippets.

View wannymiarelli's full-sized avatar
🏠
Working from home

Wanny Miarelli wannymiarelli

🏠
Working from home
View GitHub Profile
This file has been truncated, but you can view the full file.
[
{
"adults": 2,
"children": 0,
"childrenAge": [],
"currency": "EUR",
"roomsAvailableList": [],
"services": [
{
"seId": 73,
<?php
public function login (Request $request) {
$client = \DB::table('oauth_clients')
->where('password_client', '=', true)
->first();
// more login logci
}
<?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 December 21, 2017 13:50
Auth0 ExpressJS
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 }));
/*