改进 工单翻页
This commit is contained in:
parent
ccf70a6b15
commit
2445ebcdab
@ -21,7 +21,7 @@ class WorkOrderController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index(WorkOrder $workOrder): View
|
public function index(WorkOrder $workOrder): View
|
||||||
{
|
{
|
||||||
$workOrders = $workOrder->with(['user', 'host'])->latest()->paginate(50);
|
$workOrders = $workOrder->with(['user', 'host'])->latest()->paginate(20)->withQueryString();
|
||||||
|
|
||||||
return view('admin.work-orders.index', compact('workOrders'));
|
return view('admin.work-orders.index', compact('workOrders'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user