Cookie problem in v3.0

General 2 years ago by schaufelmeister

Hi, I am a bit confused by the documentation. Under "Learning More" there is a Link "Cookie API" and under "System Helpers" is a link "Cookie". I have tried to use Cooikie's like described in "Cookie API":

use Nova\Support\Facades\Cookie;
/*On login method*/
Cookie::queue('user', $hash, Cookie::FIVEYEARS);
/*On logout method*/

the Cookie gets created but Cookie::forget('user'); don't destroys it. Then I tried to use Cookie's like described in the system helper section but I don't even know what namespace I have to use... ps: Cookie::make() and Cookie::forever() does not work for me either. I can only create cookies with Cookie::queue()

2 years ago by schaufelmeister



is just reurning the Object that has to be queued so


is the solution.

2 years ago by LuckyCyborg

Yup, that's idea.

Login to reply.