2022-06-12 15:01:34 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Engelsystem\Helpers;
|
|
|
|
|
|
|
|
use Engelsystem\Container\ServiceProvider;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
|
|
|
|
class UuidServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register the UUID generator to the Str class
|
|
|
|
*/
|
2022-12-14 19:15:20 +01:00
|
|
|
public function register(): void
|
2022-06-12 15:01:34 +02:00
|
|
|
{
|
2022-12-31 16:25:16 +01:00
|
|
|
Str::createUuidsUsing(Uuid::class . '::uuid');
|
2022-06-12 15:01:34 +02:00
|
|
|
}
|
|
|
|
}
|