File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3
3
namespace Yajra \DataTables ;
4
4
5
5
use Illuminate \Http \Resources \Json \AnonymousResourceCollection ;
6
- use Illuminate \Pagination \LengthAwarePaginator ;
7
- use Illuminate \Support \Collection ;
8
6
9
7
class ApiResourceDataTable extends CollectionDataTable
10
8
{
@@ -22,7 +20,7 @@ public static function canCreate($source)
22
20
/**
23
21
* Factory method, create and return an instance for the DataTable engine.
24
22
*
25
- * @param \Illuminate\Http\Resources\Json\AnonymousResourceCollection<array-key, array>|array $source
23
+ * @param \Illuminate\Http\Resources\Json\AnonymousResourceCollection<array-key, array>|array $source
26
24
* @return ApiResourceDataTable|DataTableAbstract
27
25
*/
28
26
public static function create ($ source )
@@ -43,4 +41,5 @@ public function __construct(AnonymousResourceCollection $collection)
43
41
$ this ->original = collect ($ collection );
44
42
$ this ->columns = array_keys ($ this ->serialize (collect ($ collection )->first ()));
45
43
}
44
+
46
45
}
You can’t perform that action at this time.
0 commit comments