public static function getOldModel(Eloquent $model) {
		$class = get_class($model);

		$oldModel = $class::find($model->id);
		if (empty($oldModel)) :
			throw new NoOldModelException("Could not find model with class {$class} and id {$model->id}");
		endif;

		return $oldModel;
	}
public static function getOldModel(Eloquent $model) {
		$class = get_class($model);

		$oldModel = $class::find($model->id);
		if (empty($oldModel)) :
			throw new NoOldModelException("Could not find model with class {$class} and id {$model->id}");
		endif;

		return $oldModel;
	}
public static function getOldModel ( Eloquent $ model ) { $ class = get_class ( $ model ) ; $ oldModel = $ class :: find ( $ model -> id ) ; if ( empty ( $ oldModel ) ) : throw new NoOldModelException ( "Could not find model with class {$class} and id {$model->id}" ) ; endif ; return $ oldModel ; }
For updating, get the old model
@param \Eloquent $model
@return type
@throws \InvalidArgumentException
For updating get the old model