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