PHP code example of gavtaylor / laravel-seo

1. Go to this page and download the library: Download gavtaylor/laravel-seo 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/ */

    

gavtaylor / laravel-seo example snippets


// routes/console.php
Schedule::command('indexnow:submit')->daily();
bash
php artisan vendor:publish --tag=seo-config
bash
php artisan indexnow:submit             # submit pages whose content changed
php artisan indexnow:submit --dry-run   # list what would be submitted
php artisan indexnow:submit --all       # resubmit everything
php artisan indexnow:submit --url=https://example.com/about