From e25c119fad9d5345757bc66845e03c28e719fbfa Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 2 Aug 2011 22:53:25 -0500 Subject: [PATCH] trying to add syntax highlighting to readme. --- readme.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 2e6244d2..dd645aca 100644 --- a/readme.md +++ b/readme.md @@ -6,22 +6,30 @@ ### Beautifully Expressive Syntax Stay true to the web with RESTful routing: - 'GET /' => function() - { - return View::make('home/index'); - } +```php +'GET /' => function() +{ + return View::make('home/index'); +} +``` Redirect to a named route and flash something to the session: - 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: - $posts = Post::with('comments')->find(1); +```php +$posts = Post::with('comments')->find(1); +``` Get input from the previous request to re-populate a form: - echo Input::old('email'); +```php +echo Input::old('email'); +``` ### Ready To Learn More?