Siti Rahayu 5 роки тому
джерело
коміт
a10ee86c96
1 змінених файлів з 10 додано та 0 видалено
  1. 10
    0
      app/Http/Controllers/Api/RestfulapiController.php

+ 10
- 0
app/Http/Controllers/Api/RestfulapiController.php Переглянути файл

@@ -118,6 +118,8 @@ class RestfulapiController extends BaseController
"status" => $c->status,
"updated_at" => $c->updated_at->toDateTimeString(),
"created_at" => $c->created_at->toDateTimeString(),
"notice_created" => $c->notice_created,
"compound_created" => $c->cpn_created,
));
}else if($c->jenis == 'Pelbagai_JPB'){
array_push($data,array(
@@ -149,6 +151,8 @@ class RestfulapiController extends BaseController
"status" => $c->status,
"updated_at" => $c->updated_at->toDateTimeString(),
"created_at" => $c->created_at->toDateTimeString(),
"notice_created" => $c->notice_created,
"compound_created" => $c->cpn_created,
));
}else if($c->jenis == 'Pelbagai_LESEN'){
array_push($data,array(
@@ -180,6 +184,8 @@ class RestfulapiController extends BaseController
"status" => $c->status,
"updated_at" => $c->updated_at->toDateTimeString(),
"created_at" => $c->created_at->toDateTimeString(),
"notice_created" => $c->notice_created,
"compound_created" => $c->cpn_created,
));
}else if($c->jenis == 'Pelbagai_PA'){
array_push($data,array(
@@ -212,6 +218,8 @@ class RestfulapiController extends BaseController
"status" => $c->status,
"updated_at" => $c->updated_at->toDateTimeString(),
"created_at" => $c->created_at->toDateTimeString(),
"notice_created" => $c->notice_created,
"compound_created" => $c->cpn_created,
));
}else if($c->jenis == 'Parkir'){
array_push($data,array(
@@ -240,6 +248,8 @@ class RestfulapiController extends BaseController
"status" => $c->status,
"updated_at" => $c->updated_at->toDateTimeString(),
"created_at" => $c->created_at->toDateTimeString(),
"notice_created" => $c->notice_created,
"compound_created" => $c->cpn_created,
));
}

Завантаження…
Відмінити
Зберегти