database/seeders/GradeSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('grades')->delete();
        $grades = [
            ['en'=> 'Primary stage', 'ar'=> 'المرحلة الابتدائية'],
            ['en'=> 'ِClubs', 'ar'=> ' النوادى'],
            ['en'=> 'KG2', 'ar'=> 'المرحلة التحضيرية'],
        ];
        foreach ($grades as $grade) {
            Grade::create(['Name' => $grade]);
        }
    }
public function run ( ) { DB :: table ( 'grades' ) -> delete ( ) ; $ grades = [ [ 'en' => 'Primary stage' , 'ar' => 'المرحلة الابتدائية'], [ 'en' => 'ِClubs', ar'= >   النوادى'], [ 'en' => 'KG2' , 'ar' => 'المرحلة التحضيرية'], ] ; foreach ( $ grades as $ grade ) { Grade :: create ( [ 'Name' => $ grade ] ) ; } }
Run the database seeds.
Run the database seeds .