public function queryModel($meth, $repr) { switch ($meth) { case 0: return Patrulla::query(); case 1: return Patrulla::with('moderadores'); } }