owenmelbz / laravel-robots-txt
Laravel 5.x helpers for a semi-automated robots.txt and meta tags
Installs: 1 107
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/owenmelbz/laravel-robots-txt
This package is auto-updated.
Last update: 2025-10-29 02:22:19 UTC
README
An automatically generated robots.txt which automatically discourages indexing of folders, with additional meta tag blade directives for in page exclusions.
Usage
-
Install via composer
composer require owenmelbz/laravel-robots-txt -
Register the service provider - typically done inside the
app.phpproviders array e.gOwenMelbz\RobotsTxt\RobotsTxtServiceProvider::class -
Add
BLOCK_ROBOTS=trueto your application environment config e.g.env -
Within your
<head>area you can include the blade directive@robotsMetato pull through anoindex, nofollowmeta tag.
Configuration
If you publish the package via php artisan vendor:publish --provider="OwenMelbz\RobotsTxt\RobotsTxtServiceProvider" you can use a custom robots.txt template file to include extra rules.