ldc-bien-etre-animal/app/Http/Controllers/Front/SearchController.php

33 lines
1 KiB
PHP
Raw Permalink Normal View History

2026-08-28 08:40:04 +00:00
<?php
declare(strict_types=1);
namespace App\Http\Controllers\Front;
use Inertia\Inertia;
use Inertia\Response;
use Uwil\LaravelCommon\Controllers\CommonController;
2026-09-03 16:52:27 +02:00
use Uwil\LaravelSchemaOrg\Services\SchemaOrgService;
2026-08-28 08:40:04 +00:00
class SearchController extends CommonController
{
2026-09-03 16:52:27 +02:00
public function index(SchemaOrgService $schemaOrg): Response
2026-08-28 08:40:04 +00:00
{
2026-09-07 10:09:49 +02:00
$trans = trans('search');
2026-09-03 16:52:27 +02:00
return Inertia::render('front/Pages/Search', [
'schemas' => [
$schemaOrg->setWebPage()
2026-09-07 10:09:49 +02:00
->headline($trans['meta']['seo_title'])
->description($trans['meta']['seo_description'])
2026-09-03 16:52:27 +02:00
->name($trans['header']['title'])
->isAccessibleForFree(true)
->keywords(['page'])
->dateCreated(new \DateTimeImmutable('2026-09-03'))
->dateModified(new \DateTimeImmutable('2026-09-03'))
->datePublished(new \DateTimeImmutable('2026-09-03')),
],
]);
2026-08-28 08:40:04 +00:00
}
}