interface
Illuminate
/
Contracts
/
Cookie
/
Factory
Factory
Methods
public
make ( $name , $value , $minutes , $path , $domain , $secure , $httpOnly , $raw , $sameSite ) : Symfony\...\Cookie
Create a new cookie instance.
Parameters
- $name string
- $value string
- $minutes int
- $path string|null
- $domain string|null
- $secure bool|null
- $httpOnly bool
- $raw bool
- $sameSite string|null
public
forever ( $name , $value , $path , $domain , $secure , $httpOnly , $raw , $sameSite ) : Symfony\...\Cookie
Create a cookie that lasts "forever" (five years).
Parameters
- $name string
- $value string
- $path string|null
- $domain string|null
- $secure bool|null
- $httpOnly bool
- $raw bool
- $sameSite string|null
public
forget ( $name , $path , $domain ) : Symfony\...\Cookie
Expire the given cookie.
Parameters
- $name string
- $path string|null
- $domain string|null