protected function migrateLocation($srcLocation) {
        $location = ScoolLocation::firstOrNew([
            'name' => $srcLocation->name,
        ]);
        $location->save();
        $location->shortname = $srcLocation->shortName;
        $location->description = $srcLocation->description;
        $location->code = $srcLocation->external_code;
    }
protected function migrateLocation($srcLocation) {
        $location = ScoolLocation::firstOrNew([
            'name' => $srcLocation->name,
        ]);
        $location->save();
        $location->shortname = $srcLocation->shortName;
        $location->description = $srcLocation->description;
        $location->code = $srcLocation->external_code;
    }
protected function migrateLocation ( $ srcLocation ) { $ location = ScoolLocation :: firstOrNew ( [ 'name' => $ srcLocation -> name , ] ) ; $ location -> save ( ) ; $ location -> shortname = $ srcLocation -> shortName ; $ location -> description = $ srcLocation -> description ; $ location -> code = $ srcLocation -> external_code ; }
Migrate location.

@param $srcLocation
Migrate location .