Skip to content

Commit e524aab

Browse files
Merge pull request #7 from yabhq/fix/rename-uuid-trait
Re-name the Uuid trait to UuidModel
2 parents 69a53bf + 88ef765 commit e524aab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Traits/Uuid.php renamed to src/Traits/UuidModel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
use Ramsey\Uuid\Uuid as RamseyUuid;
66

7-
trait Uuid
7+
trait UuidModel
88
{
99
/**
1010
* Hook into the boot method to catch creating and saving events
1111
*
1212
* @return void
1313
*/
14-
public static function bootUuid()
14+
public static function bootUuidModel()
1515
{
1616
static::creating(function ($model) {
1717
$model->id = RamseyUuid::uuid4()->toString();

tests/Models/UuidModel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Yab\Mint\Tests\Models;
44

5-
use Yab\Mint\Traits\Uuid;
65
use Illuminate\Database\Eloquent\Model;
6+
use Yab\Mint\Traits\UuidModel as UuidModelTrait;
77

88
class UuidModel extends Model
99
{
10-
use Uuid;
10+
use UuidModelTrait;
1111
}

0 commit comments

Comments
 (0)