@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\BinaryUuid; |
| 4 | 4 | |
| 5 | -use Ramsey\Uuid\Uuid; |
|
| 6 | -use Illuminate\Database\Eloquent\Model; |
|
| 7 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 6 | +use Illuminate\Database\Eloquent\Model; |
|
| 7 | +use Ramsey\Uuid\Uuid; |
|
| 8 | 8 | |
| 9 | 9 | trait HasBinaryUuid |
| 10 | 10 | { |
@@ -54,6 +54,9 @@ |
||
| 54 | 54 | return Uuid::uuid1(); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param string $uuid |
|
| 59 | + */ |
|
| 57 | 60 | public static function encodeUuid($uuid): string |
| 58 | 61 | { |
| 59 | 62 | if (! Uuid::isValid($uuid)) { |