Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8c57fc

Browse files
committed
added a setDefault method.
1 parent 3d13d49 commit e8c57fc

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Illuminate/Cookie/CookieJar.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ public function forget($name)
137137
return $this->make($name, null, -2628000);
138138
}
139139

140+
/**
141+
* Set the value of a cookie otpion.
142+
*
143+
* @param string $option
144+
* @param string $value
145+
* @return void
146+
*/
147+
public function setDefault($option, $value)
148+
{
149+
$this->defaults[$option] = $value;
150+
}
151+
140152
/**
141153
* Get the request instance.
142154
*

0 commit comments

Comments
 (0)