Support for arrays in View:with() by skovachev · Pull Request #14 · robclancy/presenter
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 38
Closed
skovachev wants to merge 1 commit intorobclancy:masterfrom
Closed
Support for arrays in View:with()#14
skovachev wants to merge 1 commit intorobclancy:masterfrom
Support for arrays in View:with()#14
skovachev wants to merge 1 commit intorobclancy:masterfrom
Conversation
Copy link
Contributor
skovachev
commented
Jul 30, 2013
skovachev
commented
Added support for arrays in the Robbo\Presenter\View\View's with() method
Copy link
Owner
robclancy
commented
Jul 30, 2013
robclancy commented
Jul 30, 2013Can you show me what kind of code this makes work?
Copy link
Contributor Author
skovachev
commented
Jul 30, 2013
skovachev commented
Jul 30, 2013In Laravel you can use the View::with method in two ways:
- By passing a key and a value like so:
View::make('profile')->with('user', new User);
- 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.
Copy link
Owner
robclancy
commented
Aug 13, 2013
robclancy commented
Aug 13, 2013This has been merged into the develop branch.
robclancy
closed this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment