Skip to content

Commit

Permalink
null fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Alexandre Mutane committed Jul 14, 2023
1 parent 53c9192 commit c5a9894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Website/Welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function asController()
//
return view('website.welcome', [
'page' => GetPage::run()->with('media')->first()?->getFirstMedia(Pages::HOME),
'thumb' => GetPage::run()->with('media')->first()?->getFirstMedia(Pages::HOME)->responsiveImages()->getPlaceholderSvg(),
'thumb' => GetPage::run()->with('media')->first()?->getFirstMedia(Pages::HOME)?->responsiveImages()?->getPlaceholderSvg(),
'relevantImovels' => $this->getRelevantImovels(),
'lastestImovels' => Imovel::with(['bairro.cidade', 'intermediationRule', 'imovelFor', 'tipo_de_imovel', 'status', 'comentarios', 'ratings'])->latest('created_at')->get()->take(6),
'banners' => Banner::with('media')->first(),
Expand Down

0 comments on commit c5a9894

Please sign in to comment.