Arjay Angeles

Results 436 comments of Arjay Angeles

Any error on the response? Maybe try cloning the `filteredQuery` cause it's currently mutable. ```php ->withQuery('total', function ($filteredQuery) { return (clone $filteredQuery)->sum('Amount'); }) ```

I see, so the problem is paging are getting applied when doing the sum? Maybe try removing the paging applied on query before applying the sum? Is it possible to...

Looks like double encoding is happening in your url and it is server configuration issue. See https://github.com/yajra/laravel-datatables/issues/1210

@coolflames can you try returning the query if it works? I think I've seen this issue before and this might be related to self join handling of the DB driver....

@dhcmega the PR was reverted as it causes another issue. Self join is currently not yet supported again. Thanks!

Here is an example: ```php php artisan datatables:scope AdminUsersScope // AdminUsersScope.php namespace App\DataTables\Scopes; use Yajra\DataTables\Contracts\DataTableScope; class AdminUsersScope implements DataTableScope { /** * Apply a query scope. * * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder...

Maybe a typo on index? ```php // should be index public function qindex(ApartmentDataTable $dataTable) ```

Your code looks fine. Any errors on console?

Haven't tried using lumen, need help from the community on this one. Thanks!