コード例 #1
0
ファイル: IngresoControl.php プロジェクト: giocni93/Apiturno
 function getingreso(Request $request, Response $response)
 {
     $response = $response->withHeader('Content-type', 'application/json');
     $data = Ingreso::all();
     if (count($data) == 0) {
         $response = $response->withStatus(404);
     }
     $response->getBody()->write($data);
     return $response;
 }
コード例 #2
0
 public function listaI()
 {
     $todoingresos = Ingreso::all();
     return View::make('movimiento.ingresos.listar')->with('todoingresos', $todoingresos);
 }