We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69a53bf + 88ef765 commit e524aabCopy full SHA for e524aab
src/Traits/Uuid.php renamed to src/Traits/UuidModel.php
@@ -4,14 +4,14 @@
4
5
use Ramsey\Uuid\Uuid as RamseyUuid;
6
7
-trait Uuid
+trait UuidModel
8
{
9
/**
10
* Hook into the boot method to catch creating and saving events
11
*
12
* @return void
13
*/
14
- public static function bootUuid()
+ public static function bootUuidModel()
15
16
static::creating(function ($model) {
17
$model->id = RamseyUuid::uuid4()->toString();
tests/Models/UuidModel.php
@@ -2,10 +2,10 @@
2
3
namespace Yab\Mint\Tests\Models;
-use Yab\Mint\Traits\Uuid;
use Illuminate\Database\Eloquent\Model;
+use Yab\Mint\Traits\UuidModel as UuidModelTrait;
class UuidModel extends Model
- use Uuid;
+ use UuidModelTrait;
}
0 commit comments