public function run()
 {
     Model::unguard();
     $this->clearDbTables();
     foreach ($this->categories as $category) {
         Category::create($category);
     }
     for ($index = 0; $index < 9; $index++) {
         Format::create(['type' => $this->formats . $index]);
     }
     $this->call('AuthorTableSeeder');
     $this->call('UserTableSeeder');
     Model::reguard();
 }
Ejemplo n.º 2
0
 /**
  * @param array $data
  * @return mixed
  */
 public function create(array $data)
 {
     return Format::create($data);
 }