aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/factories/Permissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/account/factories/Permissions.php')
-rwxr-xr-xmain/app/sprinkles/account/factories/Permissions.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/app/sprinkles/account/factories/Permissions.php b/main/app/sprinkles/account/factories/Permissions.php
new file mode 100755
index 0000000..591f5fd
--- /dev/null
+++ b/main/app/sprinkles/account/factories/Permissions.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * UserFrosting (http://www.userfrosting.com)
+ *
+ * @link https://github.com/userfrosting/UserFrosting
+ * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
+ */
+
+use League\FactoryMuffin\Faker\Facade as Faker;
+
+/**
+ * General factory for the Permission Model
+ */
+$fm->define('UserFrosting\Sprinkle\Account\Database\Models\Permission')->setDefinitions([
+ 'slug' => Faker::word(),
+ 'name' => Faker::word(),
+ 'description' => Faker::paragraph(),
+ 'conditions' => Faker::word()
+]);