Make view::with value optional.
This commit is contained in:
parent
9dbbc5848b
commit
991fc70275
@ -390,7 +390,7 @@ class View implements ArrayAccess {
|
|||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return View
|
* @return View
|
||||||
*/
|
*/
|
||||||
public function with($key, $value)
|
public function with($key, $value = null)
|
||||||
{
|
{
|
||||||
if (is_array($key))
|
if (is_array($key))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user