mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 17:21:07 +03:30
add pagination to my packages
This commit is contained in:
@@ -69,7 +69,7 @@ class PackageController extends Controller
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$Packages = $Packages->orderByDesc('id')->get();
|
$Packages = $Packages->orderByDesc('id')->paginate(10);
|
||||||
|
|
||||||
return PackageResource::collection($Packages);
|
return PackageResource::collection($Packages);
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -8,7 +8,7 @@ const urls = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
showPackage: function(id) {
|
showPackage: function(id) {
|
||||||
return `/ShowPackage/${id}`;
|
return `/api/show-package/${id}`;
|
||||||
},
|
},
|
||||||
showLabel: function(id) {
|
showLabel: function(id) {
|
||||||
return `/ShowLabel/${id}`;
|
return `/ShowLabel/${id}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user