Update
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
use App\Models\BackgroundMedia;
|
||||
use App\Models\MemeMedia;
|
||||
use App\Services\MemeMediaService;
|
||||
use Artesaos\SEOTools\Facades\JsonLd;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
@@ -11,6 +12,10 @@
|
||||
|
||||
class FrontHomeController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
private MemeMediaService $memeMediaService
|
||||
) {}
|
||||
|
||||
public function index()
|
||||
{
|
||||
if (App::environment('production') && env('COMING_SOON_ENABLED', true)) {
|
||||
@@ -28,12 +33,16 @@ public function index()
|
||||
// Get FAQ data
|
||||
$faqData = $this->getFaqData();
|
||||
|
||||
// Get popular keywords for search suggestions
|
||||
$popularKeywords = $this->memeMediaService->getPopularKeywords(10);
|
||||
|
||||
// Add FAQ JSON-LD structured data
|
||||
$this->addFaqJsonLd($faqData);
|
||||
|
||||
return Inertia::render('home/home', [
|
||||
'stats' => $stats,
|
||||
'faqData' => $faqData,
|
||||
'popularKeywords' => $popularKeywords,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user