/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function home() { // Some general statistics $notes = Note::all(); $noteCount = count($notes); $references = Reference::all(); $referenceCount = count($references); $tags = Tag::all(); $tagCount = count($tags); $outlines = Outline::all(); $outlineCount = count($outlines); return view('app.main', compact('noteCount', 'referenceCount', 'tagCount', 'outlineCount')); }
public function index() { $outlines = Outline::all(); return $outlines; }
/** * Displays a list of all outlines * * @return Response */ public function index() { // ToDo: Display list of all outliners $outlines = Outline::all(); return view('outlines.list', ['outlines' => $outlines]); }