Skip to content

Commit 314f25b

Browse files
committed
fixing conflicts.
2 parents ef6076b + 94f49c3 commit 314f25b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

laravel/auth/drivers/driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ protected function cookie($name, $value, $minutes)
188188

189189
extract($config);
190190

191-
Cookie::put($name, $minutes, $value, $path, $domain, $secure);
191+
Cookie::put($name, $value, $minutes, $path, $domain, $secure);
192192
}
193193

194194
/**

laravel/cookie.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
class Cookie {
44

5+
/**
6+
* How long is forever (in minutes).
7+
*
8+
* @var int
9+
*/
10+
const forever = 525600;
11+
512
/**
613
* The cookies that have been set.
714
*
@@ -27,7 +34,7 @@ public static function has($name)
2734
* // Get the value of the "favorite" cookie
2835
* $favorite = Cookie::get('favorite');
2936
*
30-
* // Get the value of a cookie or return a default value
37+
* // Get the value of a cookie or return a default value
3138
* $favorite = Cookie::get('framework', 'Laravel');
3239
* </code>
3340
*
@@ -96,7 +103,7 @@ public static function put($name, $value, $expiration = 0, $path = '/', $domain
96103
*/
97104
public static function forever($name, $value, $path = '/', $domain = null, $secure = false)
98105
{
99-
return static::put($name, $value, 525600, $path, $domain, $secure);
106+
return static::put($name, $value, static::forever, $path, $domain, $secure);
100107
}
101108

102109
/**

laravel/documentation/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
- Added true reflection based IoC to container.
7575
- Added `Request::route()->controller` and `Request::route()->controller_action`.
7676
- Added `Event::queue`, `Event::flusher`, and `Event::flush` methods to Event class.
77+
- Added `array_except` and `array_only` helpers, similar to `Input::except` and `Input::only` but for arbitrary arrays.
7778

7879
<a name="upgrade-3.2"></a>
7980
## Upgrading From 3.1

0 commit comments

Comments
 (0)