all() public method

Get all comments.
public all ( $n ) : mixed
$n
return mixed
コード例 #1
0
 /**
  * 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'));
 }