1. Go to this page and download the library: Download wangta69/laravel-index-now 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-index-now example snippets
return [
'log' => true,
// ✅ Google Indexing API 설정 (New)
'google' => [
'enabled' => true, // true로 설정 시 구글 전송 활성화
'key_file' => 'google-api-key.json', // storage/app 폴더 내의 파일명
'action' => 'URL_UPDATED' // or 'URL_DELETED'
],
// ✅ IndexNow 설정 (Bing, Naver 등)
'search_engines' => [
'bing' => ['enabled' => true, 'endpoint' => 'api.indexnow.org'],
'naver' => ['enabled' => true, 'endpoint' => 'searchadvisor.naver.com/indexnow'],
'yandex' => ['enabled' => false, 'endpoint' => 'yandex.com/indexnow'],
],
];
use Pondol\IndexNow\Jobs\IndexNow;
// 구글과 IndexNow(Bing, Naver) 모두에게 전송됩니다 (Config 설정에 따라)
IndexNow::dispatch('https://yourdomain.com/path/file');
bash
php artisan queue:work
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.