From a2bdf120960595ac42465693866f897f85f8ac2c Mon Sep 17 00:00:00 2001 From: David Andersson Date: Wed, 11 Sep 2019 22:31:57 +0200 Subject: [PATCH] Replace depricated laravel helper the `str_random`-helper was removed in laravel 6.0 --- src/NovaTextCard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NovaTextCard.php b/src/NovaTextCard.php index 5529984..fcc3239 100644 --- a/src/NovaTextCard.php +++ b/src/NovaTextCard.php @@ -2,6 +2,7 @@ namespace Ericlagarda\NovaTextCard; +use Illuminate\Support\Str; use Laravel\Nova\Card; class TextCard extends Card @@ -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()); }