Simple middleware to allow CORS on Laravel 5
(1) Copy Cors.php into /App/Http/Middleware directory.
(2) Add middleware to Kernel.php file:
'cors' => \App\Http\Middleware\Cors::class,
(3) Include middleware in your route(s):
Route::group(['middleware' => 'cors'], function () { // });
laravel-cors-middleware is created and maintained by Derek Skeba