Only add 4 lines code into DatatableServiceProvider.php file it supports with Laravel 5 #239
Comments
I have tried your fix but I am getting below error
Here is my controller
I am using L 5.04, please help guys |
Goto vendor/chumper/datatable/src/views folder then open javascript.blade.php then replace this code with existing code. Better way you publish chumper view then replace this code with javascript.blade.php code. Both works fine. May be its happened Laravel new syntax for raw html output.
|
Hi , i had the same problem with the set options method, updated the code javascript.blade.php , but still getting the same error , any update how to resolve it. Thanks. |
Hi Jayesh, => I used @bart solution from here and mixed it with @IftekherSunny and followed this instruction
after that your
=> run composer update => now go to => update your boot method to this
=> and finally change javascript.blade.php and view config vendor/chumper/datatable/src/views/javascript.blade.php
and config vendor/chumper/datatable/src/config/config.php
=> after that you can run enjoy |
Thanks @saqueib for step by step process, I also found the solution almost on the same lines which i put here : http://jayeshmagare.blogspot.com/2015/02/using-chumper-datatable-in-laravel-5.html . Hope this helps someone. |
Into boot function of DatatableServiceProvider I added this 4 lines code It works fine without any problem. If anyone want to change default setting by publishing the config and view by using Laravel 5 console command php artisan vendor:publish its also worked.
DatatableServiceProvider.php
config.php
replacing this two lines in config.php file with
@Chumper brother please check this.
The text was updated successfully, but these errors were encountered: