Exemplo n.º 1
0
 public function getIndex()
 {
     $user = Auth::user();
     $comments = Comment::orderBy('updated_at', 'DESC')->get();
     // Hier später definieren, welche comments gelesen werden dürfen
     return view('comments.index')->with('comments', $comments)->with('author', $user);
 }