Skip to content

Commit

Permalink
Closes #40.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler authored Mar 27, 2021
1 parent bc3346c commit eedcc67
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,19 @@ class StorePostRequest extends FormRequest
}
```

### Testing

As previously mentioned in the [Validation Rules](#validation-rules) section, Orbit operates on a custom connection called `orbit`. This means that Laravel's database testing utilities will work, as long as you specify the connection name.

```php
$this->assertDatabaseCount('posts', 5, 'orbit');

$this->assertDatabaseHas('posts', [
'title' => 'Hello, world',
'slug' => 'hello-world',
], 'orbit');
```

## Drivers

Orbit is a driver-based package, making it very easy to change the storage format of your data.
Expand Down

0 comments on commit eedcc67

Please sign in to comment.