mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 14:09:43 -08:00
17 lines
287 B
PHP
17 lines
287 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|