Skip to content

Server side Kendo UI DataSource implementation for Laravel

License

Notifications You must be signed in to change notification settings

emuthomi/laravel-kendo-ui-datasource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Kendo UI DataSource

Server side Kendo UI DataSource implementation for Laravel

Installation

To get the latest version simply require it in your composer.json file.

"meowcakes/laravel-kendo-ui-datasource": "dev-master"

You can register the facade in the aliases key of your app/config/app.php file.

'aliases' => array(

    'KendoDataSource' => 'Meowcakes\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]);

About

Server side Kendo UI DataSource implementation for Laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published