public function page($type) { $query = request()->except('page'); $supplies = Supply::getPage($type); return view('supply.supply_page') ->withSupplies($supplies) ->withType($type) ->withQuery($query); }