/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $profiles = Profile::orderBy('votes', 'DESC')->get(); return view('admin.profile')->with('profiles', $profiles); }