From 4616a8e2d54828e7314bf264165d39dc686fb0c5 Mon Sep 17 00:00:00 2001 From: Anatoliy Poloz Date: Tue, 26 Dec 2023 12:15:09 +0300 Subject: [PATCH 1/2] recipe slug update artisan command added --- app/Console/Commands/UpdateSlugs.php | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 app/Console/Commands/UpdateSlugs.php diff --git a/app/Console/Commands/UpdateSlugs.php b/app/Console/Commands/UpdateSlugs.php new file mode 100644 index 0000000..c9a1426 --- /dev/null +++ b/app/Console/Commands/UpdateSlugs.php @@ -0,0 +1,45 @@ +get() + ->each( + function ($model) { + $newName = $model->title . " 2612"; + $oldName = Str::replaceLast(' 2612', '', $newName); + + $model->title = $newName; + $model->save(); + + $model->title = $oldName; + $model->save(); + } + ); + // + } +} From 700e649b3bbd19159387b7fdee34236188245e16 Mon Sep 17 00:00:00 2001 From: Anatoliy Poloz Date: Tue, 26 Dec 2023 12:16:36 +0300 Subject: [PATCH 2/2] plan description show unescaped elements in description added --- resources/views/livewire/plan/like.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/plan/like.blade.php b/resources/views/livewire/plan/like.blade.php index 007c51d..bbee71d 100644 --- a/resources/views/livewire/plan/like.blade.php +++ b/resources/views/livewire/plan/like.blade.php @@ -23,7 +23,7 @@

- {{ $plan->details }} + {!! $plan->details !!}

@php