diff --git a/composer.json b/composer.json index 6049aee..51407de 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ "require": { "php": ">=5.4.0", "nesbot/carbon": "^1.22", - "danielstjules/stringy": "^2.3" + "danielstjules/stringy": "^2.3", + "fzaninotto/faker": "^1.6" }, "autoload": { "psr-4": { @@ -21,8 +22,5 @@ "files": [ "helpers.php" ] - }, - "require-dev": { - "fzaninotto/faker": "^1.6" } } diff --git a/helpers.php b/helpers.php index 1c9ddb5..ec513a4 100644 --- a/helpers.php +++ b/helpers.php @@ -151,7 +151,7 @@ function base_layout_has($key) if(!function_exists('base_faker_factory')) { function base_faker_factory() { if(!class_exists('Faker\Factory')) { - throw new Exception('Faker library is not installed - are you running in production?'); + throw new Exception('Faker library is not available.'); } return Faker\Factory::create();