laravel-grid icon indicating copy to clipboard operation
laravel-grid copied to clipboard

laravel 5.7 sort don't work

Open alexeydg opened this issue 6 years ago • 4 comments

subj

alexeydg avatar Nov 13 '18 11:11 alexeydg

+bug

php artisan vendor:publish --provider="Leantony\Grid\Providers\GridServiceProvider" --tag="views" These will be copied to resources/views/vendor/leantony/grid. From there, you can change what you want and laravel will automatically use that, instead of the one from the package.

don't work. i changed files resources/views/vendor/leantony/grid, but laravel use /vendor/leantony/laravel-grid/src/resources/views]

sorting and filtering don't working

alexeydg avatar Nov 23 '18 08:11 alexeydg

+1 @alexeydg did you find the source of the sort/filter problem ? I will have a look when I get some time.

Nuranto avatar Mar 04 '19 13:03 Nuranto

I found a mistake. I renamed $name with Russian letters, in this case nothing works, in Grid.php you need to make changes to the init () method: Str :: singular (Str :: camel (Str::slug($ this-> name))). '-'. 'grid';

alexeydg avatar Apr 10 '19 10:04 alexeydg

@alexeydg if you want to change only rendered title with russian letter you can just overwrite the renderTitle method of RendersGrid trait in your grid class. I'm not sure it's the best way, i made this to only change rendered title without other change.

dayota avatar May 27 '19 11:05 dayota