user crud
This commit is contained in:
@ -13,16 +13,7 @@ class JSONCreator
|
||||
$params = empty($meta['params']) ? ["class" => "table table-bordered", "border" => "1"] : $meta['params'];
|
||||
if ($meta) {
|
||||
$this->informationArray = [
|
||||
"meta" => [
|
||||
"columns" => $meta['columns'] ?? [],
|
||||
"rows" => $meta['rows'] ?? [],
|
||||
"perPage" => $meta['perPage'] ?? 10,
|
||||
"currentPage" => $meta['currentPage'] ?? 1,
|
||||
"baseUrl" => $meta['baseUrl'] ?? '',
|
||||
"actions" => $meta['actions'] ?? '',
|
||||
"params" => $params
|
||||
|
||||
],
|
||||
"meta" => $meta,
|
||||
"data" => $data ?? []
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user