database/seeders/CategorySeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $categories = ["Fire","Ice","Wind","Earth","Rain","River","Storm"];
        foreach ($categories as $category) {
            Category::create([
                'name' => $category
            ]);
        }
    }
public function run ( ) { $ categories = [ " Fire " , " Ice " , " Wind " , " Earth " , " Rain " , " River " , " Storm " ] ; foreach ( $ categories as $ category ) { Category :: create ( [ 'name' => $ category ] ) ; } }
Run the database seeds.
Run the database seeds .