1. Go to this page and download the library: Download wangta69/laravel-meta library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wangta69 / laravel-meta example snippets
Meta::set('market.item', ['item' => (string)$item->id])
->title($item->name)
->description($item->short_desc)
// 2차원 배열에서 특정 키값을 추출하여 키워드로 자동 변환
->extractKeywordsFromArray($item->tags, 'tag')
->image(\Storage::url($item->image))
->update();
Meta::get()->create_image(function($image) {
$image->save_path = 'public/meta/banner.png'; // 저장 경로
$image->background_image = public_path('images/bg.jpg'); // 배경
$image->font = public_path('fonts/Nanum.ttf'); // 폰트
$image->fontSize = 25; // 크기
$image->create();
});
html
<!-- 헤더 영역: 메타 태그, OG, Twitter, JSON-LD 자동 출력 -->
<x-pondol-meta::meta :meta="$meta" />
<!-- 본문 영역: 네이버/빙 등 검색엔진 자동 색인(IndexNow) 및 인증 처리 -->
<x-pondol-meta::indexnow-auth :meta="$meta ?? null" />
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.