Commit 833b6ba8 authored by Taylor Otwell's avatar Taylor Otwell

syntax highlighting: take 2.

parent e25c119f
...@@ -16,18 +16,24 @@ Stay true to the web with RESTful routing: ...@@ -16,18 +16,24 @@ Stay true to the web with RESTful routing:
Redirect to a named route and flash something to the session: Redirect to a named route and flash something to the session:
```php ```php
<?php
return Redirect::to_profile()->with('message', 'Welcome Back!'); return Redirect::to_profile()->with('message', 'Welcome Back!');
``` ```
Retrieve a blog post and eagerly load the comments using Eloquent ORM: Retrieve a blog post and eagerly load the comments using Eloquent ORM:
```php ```php
<?php
$posts = Post::with('comments')->find(1); $posts = Post::with('comments')->find(1);
``` ```
Get input from the previous request to re-populate a form: Get input from the previous request to re-populate a form:
```php ```php
<?php
echo Input::old('email'); echo Input::old('email');
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment