mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
book-case seo
This commit is contained in:
@@ -4,13 +4,14 @@ namespace App\Http\Livewire\BookCase;
|
|||||||
|
|
||||||
use App\Models\BookCase;
|
use App\Models\BookCase;
|
||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
use App\Models\User;
|
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
use Livewire\WithFileUploads;
|
use Livewire\WithFileUploads;
|
||||||
|
use RalphJSmit\Laravel\SEO\Support\SEOData;
|
||||||
|
|
||||||
class CommentBookCase extends Component
|
class CommentBookCase extends Component
|
||||||
{
|
{
|
||||||
use WithFileUploads;
|
use WithFileUploads;
|
||||||
|
|
||||||
public Country $country;
|
public Country $country;
|
||||||
|
|
||||||
public $photo;
|
public $photo;
|
||||||
@@ -21,7 +22,14 @@ class CommentBookCase extends Component
|
|||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.book-case.comment-book-case');
|
return view('livewire.book-case.comment-book-case')
|
||||||
|
->layout('layouts.app', [
|
||||||
|
'SEOData' => new SEOData(
|
||||||
|
title: $this->bookCase->title,
|
||||||
|
description: $this->bookCase->address,
|
||||||
|
image: $this->bookCase->getFirstMediaUrl('images') ?? asset('img/bookcase.jpg'),
|
||||||
|
)
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function save()
|
public function save()
|
||||||
|
|||||||
BIN
public/img/bookcase.jpg
Normal file
BIN
public/img/bookcase.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
Reference in New Issue
Block a user