Use build in cors module of Laravel/framework which should work like the version of fruitcake.
V2 (Laravel re-make)