Skip to content

Commit 54ef375

Browse files
author
James Wigger
committed
Moved faker to main require block. Updated packages
1 parent 7f6f55e commit 54ef375

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"require": {
1313
"php": ">=5.4.0",
1414
"nesbot/carbon": "^1.22",
15-
"danielstjules/stringy": "^2.3"
15+
"danielstjules/stringy": "^2.3",
16+
"fzaninotto/faker": "^1.6"
1617
},
1718
"autoload": {
1819
"psr-4": {
@@ -21,8 +22,5 @@
2122
"files": [
2223
"helpers.php"
2324
]
24-
},
25-
"require-dev": {
26-
"fzaninotto/faker": "^1.6"
2725
}
2826
}

helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function base_layout_has($key)
151151
if(!function_exists('base_faker_factory')) {
152152
function base_faker_factory() {
153153
if(!class_exists('Faker\Factory')) {
154-
throw new Exception('Faker library is not installed - are you running in production?');
154+
throw new Exception('Faker library is not available.');
155155
}
156156

157157
return Faker\Factory::create();

0 commit comments

Comments
 (0)