Looking to hire Laravel developers? Try LaraJobs

laravel maintained by indexboost

Description
IndexBoost Render middleware for Laravel
Last update
2026/04/16 08:31 (dev-main)
License
Downloads
0

Comments
comments powered by Disqus

indexboost/laravel

IndexBoost Render middleware for Laravel 10+.

Installation

composer require indexboost/laravel

Publish the config:

php artisan vendor:publish --tag=indexboost-config

Setup

Add your token to .env:

INDEXBOOST_TOKEN=your_token_here

Register the middleware in bootstrap/app.php (Laravel 11+):

->withMiddleware(function (Middleware $middleware) {
    $middleware->prepend(\IndexBoost\Laravel\Middleware\IndexBoostRender::class);
})

Or in app/Http/Kernel.php (Laravel 10):

protected $middleware = [
    \IndexBoost\Laravel\Middleware\IndexBoostRender::class,
    // ... existing
];

Configuration

config/indexboost.php:

Key Default Description
token INDEXBOOST_TOKEN env Render token
service_url https://render.getindexboost.com Render service URL
enabled true Enable/disable
timeout 30 HTTP timeout (seconds)
crawler_pattern built-in PCRE regex for crawlers
ignored_uris [/api/, /admin/] URI patterns to skip

License

MIT