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