Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Pixelairport's avatar

How to delete cookie in laravel?

After weeks of testing, I think I almost understand how to create gateway server with vue app and use httponly cookies. No I want to create a button in my app to logout the user. The logout will call the api (gatewayserver with laravel) and should delete the httponly cookie. But how can I do this. Or is it enought to delete the access_token from passport. Because this is the value for authentication. But I would prefer also to delete the cookie. But i cant find the cookie in storage directory.

0 likes
1 reply

Please or to participate in this conversation.