Laravel-datatables: All of the data retrieve without using length in Soft delete Model

Created on 18 Jan 2017  路  1Comment  路  Source: yajra/laravel-datatables

Summary of problem or feature request

All of the data retrieve in onlyTrashed() method . It does not limit the items.
It works well when using withTrashed().

Code snippet of problem

        $shops = Shop::select('shops.*')->onlyTrashed();        

        return Datatables::of($shops)->make(true);

System details

  • PHP 7.1
  • PHP Version
  • Laravel 5.2
  • Datatable version 6.22.5
enhancement

Most helpful comment

We have support for withTrashed but I think we don't handle yet onlyTrashed. Tagging for enhancements. Thanks for reporting.

>All comments

We have support for withTrashed but I think we don't handle yet onlyTrashed. Tagging for enhancements. Thanks for reporting.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FilipeBorges1993 picture FilipeBorges1993  路  3Comments

t0n1zz picture t0n1zz  路  3Comments

sangnguyenplus picture sangnguyenplus  路  3Comments

josiahke picture josiahke  路  3Comments

nasirkhan picture nasirkhan  路  3Comments