Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
New feature: Datatables option #50
I built this into your old Mitul version. I can supply the code it should not be to hard to implement into your new one.
This creates the App\DataTable\ExampleDataTable.php
This creates the resouces/views/example/datatable.blade.php
This creates the new views generator
_Total views are:_
If interested This creates the a factory from the above view generator
If interested This creates the a seeder from the above view generator
I am absolutely loving this https://github.com/yajra/laravel-datatables package!
Especially using it the "as a Service" way. It's wonderful and so powerful. A huge improvement to the current scaffolding with the ajax search, sorting and very easy to add inline edit/delete buttons as well as a "add new" button. Am currently using this for the "index" view and using the generated scaffolding for the edit. It was very easy to drop-in. Really looking forward to this being baked-in to this project!
This is another plugin in jquery: https://vitalets.github.io/x-editable/demo-bs3.html#
referenced this issue
Mar 28, 2016
These are the stubs I am using to generate my datatables (as a service http://datatables.yajrabox.com/service). I'll post them here, might be helpful to you.
I know some of what I did is dirty but it may still help.
Take note that I'm using 'Stolz/Assets' to load my datatables js/css which basically only loads
Added this to GeneratorConfig.php
Added this to laravel_generator.php (note that I'm using subfolders.. which is related to issue #70)
Added this to ViewGenerator.php
this is my DataTable.stub
And this is my modified index for the controller.stub
and finally this is my /views/datatables/index.blade.php