public function run()
 {
     ForumGroup::create(array('title' => 'Group 1', 'author_id' => 1));
     ForumCategory::create(array('title' => 'Group 2', 'group_id' => 1, 'author_id' => 1));
     ForumCategory::create(array('title' => 'Group 3', 'group_id' => 1, 'author_id' => 1));
     DB::table('users')->insert(['username' => 'admin', 'password' => Hash::make('admin'), 'isAdmin' => 1]);
 }
Пример #2
0
 public function run()
 {
     ForumGroup::create(array('title' => 'General Discussion', 'author_id' => 1));
     ForumCategory::create(array('group_id' => 1, 'title' => 'Test Category 1', 'author_id' => 1));
     ForumCategory::create(array('group_id' => 1, 'title' => 'Test Category 2', 'author_id' => 1));
 }