Skip to content

Commit 767bdf3

Browse files
committed
feat: add faker global
1 parent edc73e5 commit 767bdf3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/globals/functions.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ function assets($assets = '')
1111
}
1212
}
1313

14+
if (!function_exists('fake')) {
15+
/**
16+
* Return a faker instance
17+
* @return \Faker\Generator
18+
*/
19+
function fake()
20+
{
21+
return \Faker\Factory::create();
22+
}
23+
}
24+
1425
if (!function_exists('view')) {
1526
/**
1627
* Return a view

0 commit comments

Comments
 (0)