/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Idea::all(); }
public function supporters() { $ideaCount = Idea::count(); $ideaSupporters = Idea::all(); return view('account.supporters')->with('ideaCount', $ideaCount)->with('ideaSupporters', $ideaSupporters); }