Skip to content

Instantly share code, notes, and snippets.

View brunocoelhor's full-sized avatar

Bruno Coelho Rodrigues brunocoelhor

View GitHub Profile
{
"cidades": [
"Aceguá",
"Água Santa",
"Agudo",
"Ajuricaba",
"Alecrim",
"Alegrete",
"Alegria",
"Almirante Tamandaré do Sul",
@brunocoelhor
brunocoelhor / CatchAllOptionsRequestsProvider.php
Created September 25, 2015 04:53 — forked from danharper/CatchAllOptionsRequestsProvider.php
Lumen with CORS and OPTIONS requests
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {