Laravel - Browser Tests - Cookies

You may use the cookie method to get or set an encrypted cookie's value. By default, all of the cookies created by Laravel are encrypted:

    
    $browser->cookie('name');
    
    $browser->cookie('name', 'Taylor');
	

You may use the plainCookie method to get or set an unencrypted cookie's value:

    
    $browser->plainCookie('name');
    
    $browser->plainCookie('name', 'Taylor');
	

You may use the deleteCookie method to delete the given cookie:

    
    $browser->deleteCookie('name');