protected function createCourse(Course $srcCourse)
    {
        $course = ScoolCourse::firstOrNew([
            'name'         => $srcCourse->name,
        ]);
        $course->save();
        $course->shortname = $srcCourse->shortname;
        $course->description = $srcCourse->description;

        return $course;
    }
protected function createCourse(Course $srcCourse)
    {
        $course = ScoolCourse::firstOrNew([
            'name'         => $srcCourse->name,
        ]);
        $course->save();
        $course->shortname = $srcCourse->shortname;
        $course->description = $srcCourse->description;

        return $course;
    }
protected function createCourse ( Course $ srcCourse ) { $ course = ScoolCourse :: firstOrNew ( [ 'name' => $ srcCourse -> name , ] ) ; $ course -> save ( ) ; $ course -> shortname = $ srcCourse -> shortname ; $ course -> description = $ srcCourse -> description ; return $ course ; }
Create scool course using ebre-escool course.

@param Course $srcCourse
@return mixed
Create scool course using ebre - escool course .