diff options
Diffstat (limited to 'database/seeds/UsersTableSeeder.php')
-rw-r--r-- | database/seeds/UsersTableSeeder.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/database/seeds/UsersTableSeeder.php b/database/seeds/UsersTableSeeder.php new file mode 100644 index 0000000..395fc13 --- /dev/null +++ b/database/seeds/UsersTableSeeder.php @@ -0,0 +1,21 @@ +<?php + +use Illuminate\Database\Seeder; +use Illuminate\Database\Eloquent\Model; + +class UsersTableSeeder extends Seeder +{ + /** + * Run the database seeds. + * + * @return void + */ + public function run() + { + DB::table('users')->insert([ + 'name' => str_random(10), + 'email' => str_random(10).'@gmail.com', + 'password' => bcrypt('secret'), + ]); + } +} |