fix bug in input::except method when passing a string.
This commit is contained in:
parent
270cdf2ffc
commit
c6125edc66
|
|
@ -12,6 +12,7 @@ ## Contents
|
|||
<a name="3.2"></a>
|
||||
## Laravel 3.2
|
||||
|
||||
- Fixed the passing of strings into the Input::except method.
|
||||
- Fixed replacement of optional parameters in URL::transpose method.
|
||||
- Added "to_array" method to the base Eloquent model.
|
||||
- Added "$hidden" static variable to the base Eloquent model.
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public static function only($keys)
|
|||
*/
|
||||
public static function except($keys)
|
||||
{
|
||||
return array_diff_key(static::get(), array_flip($keys));
|
||||
return array_diff_key(static::get(), array_flip((array) $keys));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue