database/seeds/GradeSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        foreach (range(1, 14) as $grade) {
            Grade::query()->create([
                'level' => 'Level ' . $grade,
                'description' => 'Level ' . $grade,
            ]);
        }
    }
public function run ( ) { foreach ( range ( 1 , 14 ) as $ grade ) { Grade :: query ( ) -> create ( [ 'level' => 'Level ' . $ grade , 'description' => 'Level ' . $ grade , ] ) ; } }
Run the database seeds.
Run the database seeds .