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