Skip to content

Instantly share code, notes, and snippets.

@grischka
grischka / CatchAllOptionsRequestsProvider.php
Last active September 22, 2015 00:43 — 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 {
<div class="grid-overlay">
<div class="container">
<div class="row">
<div class="col-1"><span></span></div>
<div class="col-1"><span></span></div>
<div class="col-1"><span></span></div>
<div class="col-1"><span></span></div>
<div class="col-1"><span></span></div>
<div class="col-1"><span></span></div>
<div class="col-1"><span></span></div>