Skip to content

Installation

Max edited this page Nov 4, 2018 · 19 revisions

You should install this boilerplate just as though you were installing a new laravel project from the laravel repository - but instead, use this (the boilerplate) repository. Have a look at the readme for more details.

CORS

You have two options in terms of how to deal with CORS. You should choose one, depending on what you prefer.

Add CORS headers to your web-server config

You can add the CORS header configuration to your apache/nginx config for this project. There are example apache and nginx vhost/site files in this project's docs directory which demonstrate how to do this.

Add the CORS package for laravel

Add and install the following package once you are set up:

It will handle CORS for you.