/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $residents = Resident::all(); return view('resident.index', compact('residents'), ['pageHeaderText' => '住户管理', 'panelHeadingText' => '住户列表', 'contentType' => 'residents']); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $residentes = Resident::all(); $projects = Project::orderBy('name', 'ASC')->get(); return view('admin.residente.index', compact('residentes', 'projects')); }