Skip to content

Commit

Permalink
Add use statements to first example
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-daneshvar authored Jun 26, 2019
1 parent f672f6a commit f25a2c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Optionally use `HashidRouting` to set your model to use the `hashid` column for
Laravel's [Route Model Binding](https://laravel.com/docs/routing#route-model-binding).

```php
use Illuminate\Database\Eloquent\Model;
use MattDaneshvar\EloquentHashids\Hashid;
use MattDaneshvar\EloquentHashids\HashidRouting;

class Receipt extends Model
{
use Hashid, HashidRouting;
Expand Down

0 comments on commit f25a2c0

Please sign in to comment.