laravel/framework — pull request #2599 by franzliedke (2013-10-31 00:06:29+00:00)
Title: @define: Fallback values for Blade variables

As proposed and discussed in #2283, I implemented default values for variables in Blade templates.
At the top of your Blade file, simply add code like this:

@define($variable, 'value')

That way, if `$variable` was not passed to the template, it will be set to "value". Very useful for titles and whatnot.
One statement per line.

Sent this to master so that we get some additional testing in before release.

I'm open for discussion regarding the name of the tag. I also like `@default` or `@fallback`. I think somebody recommended `@def` or `@assign`. Taylor, you're the naming expert...