added with method to view class.
This commit is contained in:
parent
c05ccc5d49
commit
edbf7f3b0f
|
@ -83,6 +83,18 @@ public function bind($key, $value)
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Merge an array into the view data.
|
||||||
|
*
|
||||||
|
* @param array $data
|
||||||
|
* @return View
|
||||||
|
*/
|
||||||
|
public function with($data)
|
||||||
|
{
|
||||||
|
$this->data = array_merge($this->data, $data);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the parsed content of the view.
|
* Get the parsed content of the view.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue