laravel enable cors for api code example Example: laravel-cors composer require fruitcake/laravel-cors