Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhall17 authored May 11, 2024
1 parent 70ed7f2 commit 5049cbd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ Add a uuid field
Add the trait to get automatic UUID generation

``` php
class FakeModel extends Model
namespace App\Models;
use Uuid\Traits\GeneratesUuid;

use GeneratesUuid;
class FakeModel extends Model
{

});
use GeneratesUuid;

}
```

That's it! unless we use a different column name for the uuid field, then we add the following method.
Expand Down

0 comments on commit 5049cbd

Please sign in to comment.