Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit a32ecc2

Browse files
committed
remove predis so it is added only if redis is used and laravel uuid in favor of Str::uuid()
1 parent da52a51 commit a32ecc2

File tree

3 files changed

+132
-231
lines changed

3 files changed

+132
-231
lines changed

app/Support/UuidScopeTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Support;
44

5-
use Uuid;
5+
use Illuminate\Support\Str;
66

77
/**
88
* Class UuidScopeTrait.
@@ -28,7 +28,7 @@ protected static function bootUuidScopeTrait()
2828
{
2929
static::creating(function ($model) {
3030
if (empty($model->uuid)) {
31-
$model->uuid = Uuid::generate()->string;
31+
$model->uuid = (string) Str::uuid();
3232
}
3333
});
3434
}

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
"laravel/framework": "5.6.*",
2020
"laravel/passport": "^5.0",
2121
"laravel/tinker": "~1.0",
22-
"predis/predis": "^1.1",
23-
"spatie/laravel-permission": "^2.6",
24-
"webpatser/laravel-uuid": "^2.0"
22+
"spatie/laravel-permission": "^2.6"
2523
},
2624
"require-dev": {
2725
"filp/whoops": "~2.0",

0 commit comments

Comments
 (0)