Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 03a6d98

Browse files
update readme to reflect use of custom cast
1 parent 73eac83 commit 03a6d98

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Laravel Efficient UUIDs
2-
## v3.1.0
2+
## v4.0.0
33

44
[![Build Status](https://travis-ci.org/michaeldyrynda/laravel-efficient-uuid.svg?branch=master)](https://travis-ci.org/michaeldyrynda/laravel-efficient-uuid)
55
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-efficient-uuid/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-efficient-uuid/?branch=master)
@@ -59,14 +59,17 @@ You will need to add a cast to your model when using [laravel-model-uuid](https:
5959

6060
namespace App;
6161

62-
use Illuminate\Database\Eloquent\Model;
62+
use Dyrynda\Database\Support\Casts\EfficientUuid;
6363
use Dyrynda\Database\Support\GeneratesUuid;
64+
use Illuminate\Database\Eloquent\Model;
6465

6566
class Post extends Model
6667
{
6768
use GeneratesUuid;
6869

69-
protected $casts = ['uuid' => 'uuid'];
70+
protected $casts = [
71+
'uuid' => EfficientUuid::class,
72+
];
7073
}
7174
```
7275

0 commit comments

Comments
 (0)