Explorar el Código

edit api docket

ifah
root hace 5 años
padre
commit
f73184eb1e
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      app/Http/Controllers/Api/DocketMobile.php

+ 3
- 2
app/Http/Controllers/Api/DocketMobile.php Ver fichero

@@ -30,9 +30,10 @@ class DocketMobile extends BaseController
}

function createDocketID($limit){
$numberOnly = str_replace('DO-','',Docket::orderBy('docket_id', 'desc')->value('docket_id'));
$numberOnly = str_replace('DO-','',Docket::select('id','docket_id')->orderBy('created_at','DESC')->first()->docket_id);
info('before3'.$numberOnly);
$numberOnly++;
info($numberOnly);
info('after3'.$numberOnly);
return $numberOnly;

// $allowedNumbers = range(0, 9);

Cargando…
Cancelar
Guardar