mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
17 lines
355 B
PHP
17 lines
355 B
PHP
<?php
|
|
namespace App\Http\Transformers;
|
|
|
|
use App\Models\Location;
|
|
|
|
|
|
class DatatablesTransformer
|
|
{
|
|
|
|
public function transformDatatables($objects, $total = null)
|
|
{
|
|
(isset($total)) ? $objects_array['total'] = $total : $objects_array['total'] = count($objects);
|
|
$objects_array['rows'] = $objects;
|
|
return $objects_array;
|
|
}
|
|
}
|