diff --git a/app/Http/Controllers/Front/DecisionAuthorController.php b/app/Http/Controllers/Front/DecisionAuthorController.php index 8a582588..0530b74c 100644 --- a/app/Http/Controllers/Front/DecisionAuthorController.php +++ b/app/Http/Controllers/Front/DecisionAuthorController.php @@ -19,8 +19,8 @@ public function index(): RedirectResponse public function show(string $locale, DecisionAuthor $decisionAuthor): View { seo() - ->title($decisionAuthor->title) - ->description($decisionAuthor->description); + ->title((string) $decisionAuthor->title) + ->description((string) $decisionAuthor->description); return view('front.decisions.category', [ 'category' => $decisionAuthor, diff --git a/app/Http/Controllers/Front/DecisionCategoryController.php b/app/Http/Controllers/Front/DecisionCategoryController.php index b451d8e5..870ecff0 100644 --- a/app/Http/Controllers/Front/DecisionCategoryController.php +++ b/app/Http/Controllers/Front/DecisionCategoryController.php @@ -19,8 +19,8 @@ public function index(): RedirectResponse public function show(string $locale, DecisionCategory $decisionCategory): View { seo() - ->title($decisionCategory->title) - ->description($decisionCategory->description); + ->title((string) $decisionCategory->title) + ->description((string) $decisionCategory->description); return view('front.decisions.category', [ 'category' => $decisionCategory, diff --git a/app/Http/Controllers/Front/DecisionController.php b/app/Http/Controllers/Front/DecisionController.php index 09f4cfce..d8d35e72 100644 --- a/app/Http/Controllers/Front/DecisionController.php +++ b/app/Http/Controllers/Front/DecisionController.php @@ -26,8 +26,8 @@ public function index(): View public function show(string $locale, Decision $decision): View { seo() - ->title($decision->title) - ->description($decision->description); + ->title((string) $decision->title) + ->description((string) $decision->description); return view('front.decisions.show', [ 'decision' => $decision, diff --git a/app/Http/Controllers/Front/FormController.php b/app/Http/Controllers/Front/FormController.php index 86d863fb..4726f35c 100644 --- a/app/Http/Controllers/Front/FormController.php +++ b/app/Http/Controllers/Front/FormController.php @@ -19,8 +19,8 @@ class FormController extends Controller public function show(string $locale, Form $form): View { seo() - ->title($form->title) - ->description($form->description); + ->title((string) $form->title) + ->description((string) $form->description); return view('front.forms.show', [ 'form' => $form, diff --git a/app/Http/Controllers/Front/PageController.php b/app/Http/Controllers/Front/PageController.php index 9a6e93eb..3b5ad2d5 100644 --- a/app/Http/Controllers/Front/PageController.php +++ b/app/Http/Controllers/Front/PageController.php @@ -24,9 +24,9 @@ public function index(): View $image = $page->firstMedia('image'); seo() - ->title($page->title) - ->description($page->description) - ->image($image?->getUrl()); + ->title((string) $page->title) + ->description((string) $page->description) + ->image((string) $image?->getUrl()); return view('front.pages.show', [ 'page' => $page, @@ -44,9 +44,9 @@ public function show(string $locale, Page $page): RedirectResponse|View $image = $page->firstMedia('image'); seo() - ->title($page->title) - ->description($page->description) - ->image($image?->getUrl()); + ->title((string) $page->title) + ->description((string) $page->description) + ->image((string) $image?->getUrl()); $page->loadMissing('blocks.media'); diff --git a/app/Http/Controllers/Front/PersonController.php b/app/Http/Controllers/Front/PersonController.php index 9754e8c5..599593d3 100644 --- a/app/Http/Controllers/Front/PersonController.php +++ b/app/Http/Controllers/Front/PersonController.php @@ -15,9 +15,9 @@ public function show(string $locale, Person $person): View $image = $person->firstMedia('image'); seo() - ->title($person->name) - ->description($person->description) - ->image($image?->getUrl()); + ->title((string) $person->name) + ->description((string) $person->description) + ->image((string) $image?->getUrl()); return view('front.people.show', [ 'person' => $person, diff --git a/app/Http/Controllers/Front/PostCategoryController.php b/app/Http/Controllers/Front/PostCategoryController.php index fbb71ad2..22e55ae3 100644 --- a/app/Http/Controllers/Front/PostCategoryController.php +++ b/app/Http/Controllers/Front/PostCategoryController.php @@ -19,8 +19,8 @@ public function index(): RedirectResponse public function show(string $locale, PostCategory $postCategory): View { seo() - ->title($postCategory->title) - ->description($postCategory->description); + ->title((string) $postCategory->title) + ->description((string) $postCategory->description); return view('front.posts.category', [ 'category' => $postCategory, diff --git a/app/Http/Controllers/Front/PostController.php b/app/Http/Controllers/Front/PostController.php index 8b512f67..015675a2 100644 --- a/app/Http/Controllers/Front/PostController.php +++ b/app/Http/Controllers/Front/PostController.php @@ -29,9 +29,9 @@ public function show(string $locale, Post $post): View $image = $post->firstMedia('image'); seo() - ->title($post->title) - ->description($post->description) - ->image($image?->getUrl()); + ->title((string) $post->title) + ->description((string) $post->description) + ->image((string) $image?->getUrl()); return view('front.posts.show', [ 'post' => $post,