{"repo":"spatie/laravel-robots-middleware","free":true,"listed":false,"github":"https://github.com/spatie/laravel-robots-middleware","clone":"git clone https://github.com/spatie/laravel-robots-middleware.git","description":"Enable or disable the indexing of your app","language":"PHP","stars":334,"topics":["laravel","php","google","seo","robots"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Enable or disable the indexing of your app A tiny, opinionated package to enable or disable indexing your site via a middleware in Laravel. More on the Robots meta tag: https://developers.google.com/webmasters/control-crawl-index/docs/robots meta tag Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: Usage By default, the middleware enables indexing on all pages. You'll probably want to inherit your own class containing you application's indexing rule handler. Next, simply register the newly created class in your middleware stack. That's it! Responses will now always have an x-robots-tag in their headers, containing an all or none value. Changelog Please see CHANGELOG for more information what has changed recently. Testing Contributing Please see CONTRIBUTING for details. Due to nature of this package, there's a fair chance features won't be accepted to keep it light and opinionated. Security If you've found a bug regarding security please mail security@spatie.be instead of using th","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-robots-middleware/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}