@@ -13,10 +13,10 @@ |
||
| 13 | 13 | protected static function boot() |
| 14 | 14 | { |
| 15 | 15 | parent::boot(); |
| 16 | - static::creating(function ($model) { |
|
| 16 | + static::creating(function($model) { |
|
| 17 | 17 | $model->{config('uuid.default_uuid_column')} = strtoupper(Uuid::uuid4()->toString()); |
| 18 | 18 | }); |
| 19 | - static::saving(function ($model) { |
|
| 19 | + static::saving(function($model) { |
|
| 20 | 20 | $original_uuid = $model->getOriginal(config('uuid.default_uuid_column')); |
| 21 | 21 | if ($original_uuid !== $model->{config('uuid.default_uuid_column')}) { |
| 22 | 22 | $model->{config('uuid.default_uuid_column')} = $original_uuid; |
@@ -6,11 +6,11 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | class LaravelUuidServiceProvider extends ServiceProvider |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Indicates if loading of the provider is deferred. |
|
| 11 | - * |
|
| 12 | - * @var bool |
|
| 13 | - */ |
|
| 9 | + /** |
|
| 10 | + * Indicates if loading of the provider is deferred. |
|
| 11 | + * |
|
| 12 | + * @var bool |
|
| 13 | + */ |
|
| 14 | 14 | protected $defer = false; |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -34,6 +34,6 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function register() |
| 36 | 36 | { |
| 37 | - // |
|
| 37 | + // |
|
| 38 | 38 | } |
| 39 | 39 | } |