Datatable
Datatable copied to clipboard
data table for laravel 5
chumper is not working in laravel 5. please suggest any working datatable in laravel 5
I'm interested in L5 support out of the box, as well. The solutions I've seen all seem to be a manual process.
I see there has been some work done on this fork -- are there any plans to merge in?
Thanks.but i got one Exception "No hint path defined for [Chumper]".
I will still need some time for a l5 plugin, but I also don't have a problem with merging working versions at the moment. The need is there and I can't fulfill it atm
i will wait for that moment :-)
some estimate ?
To make it to work with l5 just comment $this->package('chumper/datatable'); on boot method in: vendor\chumper\datatable\src\Chumper\Datatable\DatatableServiceProvider.php
+1
@oriceon while composer update shows error, that no matching package found, remove laravel/framework v5.0.23.
@vijaysebastian i don`t understand what you mean. You could install "chumper/datatable": "dev-master" in laravel 5 then just comment $this->package('chumper/datatable'); on boot method in: vendor\chumper\datatable\src\Chumper\Datatable\DatatableServiceProvider.php and voilla. Will work!
As you see in composer.json, dev-master support Laravel 5.0,
"php": ">=5.3.0",
"illuminate/support": "4.*|~5.0",
"illuminate/view": "4.*|~5.0",
"illuminate/config": "4.*|~5.0"
Sure, when package will be updated you should comment it again. Or just fwork and load it in composer.json from your repository untill @chumper will relase L5 support
Every day i looking this issue for is there any changes :(
@oriceon thanks but one more issue that,
return Datatable::collection(Article::All()) ->searchColumns('name') ->orderColumns('name', 'description') ->addColumn('name', function ($model) { return $model->name; })
it will return all values and take more load; anyone can suggest me a proper solution for this problem. this is my js file...
var oTable=null; $(document).ready(function() { oTable = $('#allBlogs').dataTable({ "ajax": 'get-articles', "lengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]] });
});
we can use laravel pagination function but does not provide datatable features like search and sorting