I want to store a custom cookie in user browser and in a register form. I would create an affiliate system.
I test the basic cmd with this:
http://127.0.0.1:8000/?ref=159f7172ac1d34
In my controller
$ref = $request->query('ref');
$cookie = Cookie('referral', $ref , 60);
dd($cookie);
The dump of cookie created works perfect. cookie name, value, expire... But nothing is save into user browser. I have used firefox developpment web to check all cookies in browsers.
Browser doesnt store cookie. Why?
Nb: I have used also this package https://github.com/codezero-be/cookie but its the same problem.