database/seeds/CoursesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $courses = array(
            array(
                "id" => 1,
                "Course_title" => "New Abs Workout",
                "category_id" => "1",
            )
        );
        foreach ($courses as $course)
        {
            \App\Models\Course::create($course);
        }
    }
public function run ( ) { $ courses = array ( array ( " id " => 1 , " Course_title " => " New Abs Workout " , " category_id " => " 1 " , ) ) ; foreach ( $ courses as $ course ) { \ App \ Models \ Course :: create ( $ course ) ; } }
Run the database seeds.
Run the database seeds .