Closed skovachev closed 11 years ago
Can you show me what kind of code this makes work?
In Laravel you can use the View::with
method in two ways:
1) By passing a key and a value like so:
View::make('profile')->with('user', new User);
2) By passing an array of data:
View::make('profile')->with(array(
'user' => new User
));
Your package supported only 1) and I needed 2). Both versions are supported by the default Laravel View class.
This has been merged into the develop branch.
Added support for arrays in the Robbo\Presenter\View\View's with() method