Exemplo n.º 1
0
 public static function GetConceptos($idAlumno, $idAbp)
 {
     $FechaActual = Carbon::now();
     $FechaLimite = Carbon::create(2016, 10, 10, 22, 30, 11);
     if ($FechaActual->lt($FechaLimite)) {
         $Conceptos = AbpConceptos::where('fk_idAlumno', '=', $idAlumno)->where('fk_idAbp', '=', $idAbp)->select(array('palabra', 'concepto', 'fuente'))->get()->tojson();
         $Conceptos = json_decode($Conceptos);
         return $Conceptos;
     } else {
         return null;
     }
 }