I am learning laravel and in my localhost I was able to create a cookie when user submits right login credentials on the route (api/login)
The cookie name is rrr_toke