Skip to content

Commit

Permalink
Merge pull request #4 from 4ice/patch-1
Browse files Browse the repository at this point in the history
Replace depricated laravel helper
  • Loading branch information
Krato authored Feb 24, 2020
2 parents 7be25ba + a2bdf12 commit 5f5ea5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NovaTextCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Ericlagarda\NovaTextCard;

use Illuminate\Support\Str;
use Laravel\Nova\Card;

class TextCard extends Card
Expand Down Expand Up @@ -132,7 +133,7 @@ public function forceFullWidth()
public function jsonSerialize()
{
return array_merge([
'name' => str_random(16),
'name' => Str::random(16),
'width' => $this->width,
], parent::jsonSerialize());
}
Expand Down

0 comments on commit 5f5ea5a

Please sign in to comment.