laravel/laravel — pull request #862 by franzliedke (2012-06-25 18:58:30+00:00)
Title: [View] Pass variables with more expressive methods

So, right now, you would do this:

View::make('index')->with('foo', $bar);

This pull request allows to use

View::make('index')->with_foo($bar);

This is obviously inspired by dynamic where clauses.

---

Also, I could have sworn I have seen this (either implemented or suggested) somewhere, but I couldn't find it again - it's hard to search for example code - so please don't hurt me if this is a duplicate.