SpotPlayerController
extends Controller
in package
Table of Contents
Methods
- generateCookie() : Response
- Generate cookie X for spot player.
Methods
generateCookie()
Generate cookie X for spot player.
public
generateCookie(Request $request) : Response
If you are runing this on a localhost machine, make sure you run your laravel program using:
php artisan serve --host=localhost
Otherwise the cookie won't set. Moreover, make sure the cookie X won't encrypt by laravel by adding
protected $except = ['X'];
to the $except array in Midllware/EncryptCookies.
Parameters
- $request : Request
Return values
Response —$response