trying to add syntax highlighting to readme.
This commit is contained in:
parent
4f6a8ba289
commit
e25c119fad
22
readme.md
22
readme.md
|
@ -6,22 +6,30 @@ ### Beautifully Expressive Syntax
|
||||||
|
|
||||||
Stay true to the web with RESTful routing:
|
Stay true to the web with RESTful routing:
|
||||||
|
|
||||||
'GET /' => function()
|
```php
|
||||||
{
|
'GET /' => function()
|
||||||
return View::make('home/index');
|
{
|
||||||
}
|
return View::make('home/index');
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Redirect to a named route and flash something to the session:
|
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:
|
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:
|
Get input from the previous request to re-populate a form:
|
||||||
|
|
||||||
echo Input::old('email');
|
```php
|
||||||
|
echo Input::old('email');
|
||||||
|
```
|
||||||
|
|
||||||
### Ready To Learn More?
|
### Ready To Learn More?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue