Skip to content

Commit

Permalink
Merge branch 'master' of github.com:laravel/framework
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 30, 2013
2 parents 05b14e2 + 234e3ee commit 768e396
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Illuminate/Database/README.md
Expand Up @@ -6,7 +6,7 @@ The Illuminate Database component is a full database toolkit for PHP, providing

First, create a new "Capsule" manager instance. Capsule aims to make configuring the library for usage outside of the Laravel framework as easy as possible.

```
```PHP
use Illuminate\Database\Capsule\Manager as Capsule;

$capsule = new Capsule;
Expand Down Expand Up @@ -41,17 +41,17 @@ Once the Capsule instance has been registered. You may use it like so:

**Using The Query Builder**

```
```PHP
$users = Capsule::table('users')->where('votes', '>', 100)->get();
```
Other core methods may be accessed directly from the Capsule in the same manner as from the DB facade:
```
```PHP
$results = Capsule::select('select * from users where id = ?', array(1));
```

**Using The Schema Builder**

```
```PHP
Capsule::schema()->create('users', function($table)
{
$table->increments('id');
Expand All @@ -62,7 +62,7 @@ Capsule::schema()->create('users', function($table)

**Using The Eloquent ORM**

```
```PHP
class User extends Illuminate\Database\Eloquent\Model {}

$users = User::where('votes', '>', 1)->get();
Expand Down

0 comments on commit 768e396

Please sign in to comment.