App\Http\Controllers\CommentController::index PHP Method

index() public method

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