Пример #1
0
 public function queryModel($meth, $repr)
 {
     switch ($meth) {
         case 0:
             return Contenido::query();
         case 1:
             return Contenido::with(['contenible', 'tags']);
     }
 }