Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get cookie in laravel

LARAVEL COOKIE
<?php
	//Create: 
	cookie()->queue(cookie($name, $value, $minutes));
	// forever
	cookie()->queue(cookie()->forever($name, $value));
	//get
	request()->cookie($name);
	//forget
	cookie()->queue(cookie()->forget($name));
 
PREVIOUS NEXT
Tagged: #cookie #laravel
ADD COMMENT
Topic
Name
3+7 =