indexboost/laravel

IndexBoost Render middleware for Laravel

Maintainers

Package info

github.com/indexboost/laravel

Homepage

pkg:composer/indexboost/laravel

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-16 06:31 UTC

This package is not auto-updated.

Last update: 2026-04-17 05:03:44 UTC


README

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