From c2de851f5101edc68dcb4520dc270aea5858440a Mon Sep 17 00:00:00 2001 From: Wahyu Kristianto Date: Sat, 15 Jan 2022 20:57:46 +0700 Subject: [PATCH] Remove `->text()` and update field title --- src/Resources/QrcodeManager.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Resources/QrcodeManager.php b/src/Resources/QrcodeManager.php index 1cbbfbf..2d69629 100644 --- a/src/Resources/QrcodeManager.php +++ b/src/Resources/QrcodeManager.php @@ -1,10 +1,11 @@ text($this->text) + Qrcode::make('QR Code', 'text') ->background($this->background) ->logo($this->logo) ->exceptOnForms(), - Text::make('Text') + Text::make('Text', 'text') ->sortable() ->rules([ 'required', ]), - Text::make('Background') + Text::make('Background Image URL', 'background') ->sortable() ->rules([ 'nullable', @@ -74,7 +77,7 @@ public function fields(Request $request) ]) ->onlyOnForms(), - Text::make('Logo') + Text::make('Logo Image URL', 'logo') ->sortable() ->rules([ 'nullable',