chemprof / laravel-kendo-ui-datasource
There is no license information available for the latest version (1.0.2) of this package.
1.0.2
2015-07-04 04:00 UTC
Requires (Dev)
- mockery/mockery: dev-master
This package is not auto-updated.
Last update: 2024-12-31 18:35:00 UTC
README
ESSENTIALLY ALL WORK ON THIS PROJECT WAS ORIGINALLY DONE BY USER meowcakes. I HAVE FORKED THIS FROM websolutionmw MERELY TO GIVE MYSELF CONTROL OVER THE DEPENDENCY VERSIONS. I TAKE NO CREDIT OR RESPONSIBILITY FOR THE ORIGINAL SCRIPTS, OTHER THAN THE TRIVIAL ADJUSTMENTS I HAVE MADE.
Server side Kendo UI DataSource implementation for Laravel
Installation
To get the latest version simply require it in your composer.json
file.
"ChemProf/laravel-kendo-ui-datasource": "master"
You can register the facade in the aliases
key of your app/config/app.php
file.
'aliases' => array(
'KendoDataSource' => 'ChemProf\LaravelKendoUiDatasource\Facade'
)
Example
$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]);