laravel4-datatables-package icon indicating copy to clipboard operation
laravel4-datatables-package copied to clipboard

Create a configuration file

Open jgoux opened this issue 12 years ago • 0 comments

I want the search filter to be case_insensitive by default. I see that you have already think of it in your source but when I publish the configuration file of the package, there is no file at all... I created my own configuration file under app/config/packages/bllim/datatables/config.php and I put the following code in it : return [ 'search' => [ 'case_insensitive' => true ] ];

I also modify your Datatables.php class by replacing all the Config::get('datatables. by Config::get('bllim/datatables::

But my search field is still case sensitive. Maybe I'm missing something.

EDIT : Ok it's working ! I had to set the package name in DatatablesServiceProvider.php : $this->package('bllim/datatables'); to $this->package('bllim/datatables', 'bllim/datatables');

I think it will be good to update this.

Thanks in advance for some help

jgoux avatar Aug 21 '13 09:08 jgoux