snipe-it/app/Http/Transformers/DatatablesTransformer.php

17 lines
287 B
PHP
Raw Normal View History

2017-01-13 00:13:57 -08:00
<?php
namespace App\Http\Transformers;
use App\Models\Location;
class DatatablesTransformer
{
public function transformDatatables($objects)
{
$objects_array['rows'] = $objects;
$objects_array['total'] = count($objects);
return $objects_array;
}
}