Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'billriess/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldyrynda committed Apr 12, 2022
2 parents 1eeb754 + 1bfe7c2 commit 6eafe57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Casts/EfficientUuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class EfficientUuid implements CastsAttributes
*/
public function get($model, string $key, $value, array $attributes)
{
if (trim($value) === '') {
if (blank($value)) {
return;
}

Expand All @@ -36,7 +36,7 @@ public function get($model, string $key, $value, array $attributes)
*/
public function set($model, string $key, $value, array $attributes)
{
if (trim($value) === '') {
if (blank($value)) {
return;
}

Expand Down

0 comments on commit 6eafe57

Please sign in to comment.