Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Helper Function: cookie

The cookie function in Laravel is used to create a new instance of the \Symfony\Component\HttpFoundation\Cookie class or return an instance of \Illuminate\Contracts\Cookie \Factory. It does not send the cookie to the client, only creates it. The function has seven optional parameters including the name, value, expiration time, path, domain, secure flag, and httpOnly flag. Examples of creating cookies with different...