July 2018
Intermediate to advanced
420 pages
8h 46m
English
Laravel has excellent support for using CORS in its applications. Let's see how we can configure it using a library called barryvdh/laravel-cors:
Open your Terminal window inside the chapter-10 folder.
docker-compose up -d
docker-compose exec php-fpm bash
This step is very important. If you forget this command, it is very likely that you will find an error, or you may be at risk of using your local composer version to execute the following command.
composer require barryvdh/laravel-cors
Thanks to the newest version of Laravel (5.6), our new library is already ...
Read now
Unlock full access