added with method to view class.
This commit is contained in:
@@ -83,6 +83,18 @@ class View {
|
|||||||
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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user