Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
UuidServiceProvider | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
register | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Helpers; |
6 | |
7 | use Engelsystem\Container\ServiceProvider; |
8 | use Illuminate\Support\Str; |
9 | |
10 | class UuidServiceProvider extends ServiceProvider |
11 | { |
12 | /** |
13 | * Register the UUID generator to the Str class |
14 | */ |
15 | public function register(): void |
16 | { |
17 | Str::createUuidsUsing(Uuid::class . '::uuid'); |
18 | } |
19 | } |