Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4032624
D424.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D424.diff
View Options
diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php
--- a/database/factories/ModelFactory.php
+++ b/database/factories/ModelFactory.php
@@ -11,9 +11,10 @@
|
*/
-$factory->define(App\User::class, function ($faker) {
+$factory->define(AuthGrove\User::class, function (Faker\Generator $faker) {
return [
'username' => $faker->username,
+ 'fullname' => $faker->name,
'email' => $faker->email,
'password' => str_random(10),
'remember_token' => str_random(10),
diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php
--- a/database/seeds/DatabaseSeeder.php
+++ b/database/seeds/DatabaseSeeder.php
@@ -4,14 +4,13 @@
class DatabaseSeeder extends Seeder {
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- // $this->call('UserTableSeeder');
- }
+ /**
+ * Runs the database seeds.
+ *
+ * @return void
+ */
+ public function run() {
+ $this->call('UsersTableSeeder');
+ }
}
diff --git a/database/seeds/UsersTableSeeder.php b/database/seeds/UsersTableSeeder.php
new file mode 100644
--- /dev/null
+++ b/database/seeds/UsersTableSeeder.php
@@ -0,0 +1,14 @@
+<?php
+
+use Illuminate\Database\Seeder;
+
+class UsersTableSeeder extends Seeder {
+ /**
+ * Run the database seeds.
+ *
+ * @return void
+ */
+ public function run() {
+ factory(AuthGrove\User::class, 50)->create();
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 07:27 (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2368374
Default Alt Text
D424.diff (1 KB)
Attached To
Mode
D424: Seed for Users table
Attached
Detach File
Event Timeline
Log In to Comment