App\Http\Controllers\CommentController::index PHP Метод

index() публичный Метод

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