Skip to content

Commit

Permalink
Merge pull request #1 from lara-zeus/fix-rand
Browse files Browse the repository at this point in the history
🏞️ fix leftover
  • Loading branch information
atmonshi authored Jan 23, 2024
2 parents 9b32567 + d4a16b0 commit 46af471
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Concerns/HasBoringAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace LaraZeus\Boredom\Concerns;

use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Support\Str;
use LaraZeus\Boredom\BoringAvatar;

trait HasBoringAvatar
Expand All @@ -16,7 +15,7 @@ public function getFilamentAvatarUrl(): ?string
public function avatarName(): Attribute
{
return new Attribute(
get: fn () => Str::random()
get: fn () => $this->name
);
}

Expand Down

0 comments on commit 46af471

Please sign in to comment.