andriangungon
11/2/2018 - 1:25 PM

laravel 5.6 class cors does not exist

Adding for anyone looking for the fix:

app/Http/Kernel.php

add 'cors' => \Barryvdh\Cors\HandleCors::class, to the protected $routeMiddleware array.