Commit 7f493421 by Taylor Otwell

syntax highlighting: take 3.

parent 833b6ba8
......@@ -7,6 +7,8 @@ Laravel is a clean and classy framework for PHP web development. Freeing you fro
Stay true to the web with RESTful routing:
```php
<?php
'GET /' => function()
{
return View::make('home/index');
......@@ -16,25 +18,19 @@ Stay true to the web with RESTful routing:
Redirect to a named route and flash something to the session:
```php
<?php
return Redirect::to_profile()->with('message', 'Welcome Back!');
<?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);
<?php $posts = Post::with('comments')->find(1);
```
Get input from the previous request to re-populate a form:
```php
<?php
echo Input::old('email');
<?php echo Input::old('email');
```
### Ready To Learn More?
......
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