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

33 lines
1 KiB
PHP
Raw 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-03 16:52:27 +02:00
$trans = trans('front.search');
return Inertia::render('front/Pages/Search', [
'schemas' => [
$schemaOrg->setWebPage()
->headline($trans['meta']['title'])
->description($trans['meta']['description'])
->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
}
}