laravel/framework — pull request #5012 by alexgalletti (2014-07-10 17:03:21+00:00)
Title: [Proposal] Added @set to easily set variables in templates

Example use case below.

app/views/layout.php:
```html

{{ $title }}

@yield('body')

```

app/views/index.php:
```html
@extends('layout')

@set('title', 'Homepage')

@section('body')
Hello, world.
@stop
```