syntax highlighting: take 2.
This commit is contained in:
parent
e25c119fad
commit
833b6ba881
|
@ -16,18 +16,24 @@ ### Beautifully Expressive Syntax
|
|||
Redirect to a named route and flash something to the session:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
return Redirect::to_profile()->with('message', 'Welcome Back!');
|
||||
```
|
||||
|
||||
Retrieve a blog post and eagerly load the comments using Eloquent ORM:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
$posts = Post::with('comments')->find(1);
|
||||
```
|
||||
|
||||
Get input from the previous request to re-populate a form:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
echo Input::old('email');
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue