diff --git a/_docs/3-Configuration.md b/_docs/3-Configuration.md index c814316..8c1f82b 100644 --- a/_docs/3-Configuration.md +++ b/_docs/3-Configuration.md @@ -58,7 +58,7 @@ After you've published the config file `config/seo-helper.php`, you can customiz ```php 'misc' => [ 'canonical' => true, - 'robots' => ! env('APP_DEBUG', false), + 'robots' => config('app.env') !== 'production', 'default' => [ 'viewport' => 'width=device-width, initial-scale=1', 'author' => '', // https://plus.google.com/[YOUR PERSONAL G+ PROFILE HERE] diff --git a/config/seo-helper.php b/config/seo-helper.php index 420d331..6f03d29 100644 --- a/config/seo-helper.php +++ b/config/seo-helper.php @@ -38,7 +38,7 @@ */ 'misc' => [ 'canonical' => true, - 'robots' => ! env('APP_DEBUG', false), // Tell robots not to index the content if it's not on production + 'robots' => config('app.env') !== 'production', // Tell robots not to index the content if it's not on production 'default' => [ 'viewport' => 'width=device-width, initial-scale=1', // Responsive design thing 'author' => '', // https://plus.google.com/[YOUR PERSONAL G+ PROFILE HERE]