Laravel 5.x helpers for a semi-automated robots.txt and meta tags
owenmelbz/laravel-robots-txt is a Laravel package for laravel 5.x helpers for a semi-automated robots.txt and meta tags.
It currently has 15 GitHub stars and 1.117 downloads on Packagist (latest version 0.0.4).
Install it with composer require owenmelbz/laravel-robots-txt.
Discover more Laravel packages by owenmelbz
or browse all Laravel packages to compare alternatives.
Last updated
An automatically generated robots.txt which automatically discourages indexing of folders, with additional meta tag blade directives for in page exclusions.
Install via composer composer require owenmelbz/laravel-robots-txt
Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\RobotsTxt\RobotsTxtServiceProvider::class
Add BLOCK_ROBOTS=true to your application environment config e.g .env
Within your <head> area you can include the blade directive @robotsMeta to pull through a noindex, nofollow meta tag.
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.