Skip to content

Commit

Permalink
Replace depricated laravel helper
Browse files Browse the repository at this point in the history
the `str_random`-helper was removed in laravel 6.0
  • Loading branch information
4ice authored Sep 11, 2019
1 parent 7be25ba commit a2bdf12
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 a2bdf12

Please sign in to comment.