indexboost / laravel
IndexBoost Render middleware for Laravel
dev-main
2026-04-16 06:31 UTC
Requires
- php: >=8.1
- illuminate/http: >=10.0
- illuminate/support: >=10.0
Requires (Dev)
- orchestra/testbench: >=8.0
- phpunit/phpunit: >=10.0
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