protected function modelOrFind($idOrModel)
    {
    	if ($idOrModel instanceof Model && $idOrModel->exists()) {
    		return $idOrModel;
    	}

    	return $this->getModel()->findOrFail($idOrModel);
    }
protected function modelOrFind($idOrModel)
    {
    	if ($idOrModel instanceof Model && $idOrModel->exists()) {
    		return $idOrModel;
    	}

    	return $this->getModel()->findOrFail($idOrModel);
    }
protected function modelOrFind ( $ idOrModel ) { if ( $ idOrModel instanceof Model && $ idOrModel -> exists ( ) ) { return $ idOrModel ; } return $ this -> getModel ( ) -> findOrFail ( $ idOrModel ) ; }
Returns the given model instance.

@param  Model\Mixed $idOrModel

@return Mixed
Returns the given model instance .