all() public méthode

Get all comments.
public all ( $n ) : mixed
$n
Résultat mixed
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $comments = $this->comment->all(10);
     $links = $comments->links();
     return view('back.comments.index', compact('comments', 'links'));
 }