Commit edbf7f3b authored by Taylor Otwell's avatar Taylor Otwell

added with method to view class.

parent c05ccc5d
......@@ -83,6 +83,18 @@ class View {
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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment