where("type",$type); $this->success($regions->get()); } public function index() { if(!Gate::allows("地域"))return view("exception.authority"); $regions = Region::withTrashed()->get(); return view("maintenance.region.index",compact("regions")); } }