PHP code example of chemprof / laravel-kendo-ui-datasource
1. Go to this page and download the library: Download chemprof/laravel-kendo-ui-datasource library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chemprof / laravel-kendo-ui-datasource example snippets
$kd = KendoDataSource::make(
Input::all(),
[
'address' => 'string',
'suburb' => 'string',
'phone' => 'string',
'created_at' => 'date',
'fully_registered' => 'boolean',
]
);
$query = User::newQuery();
$count = $kd->execute($query);
return Response::json(['data' => $query->get()->toArray(), 'total' => $count]);