Skip to content

Model::updateOrInsert() returns an eloquent Builder object instead of bool #38839

@baueri

Description

@baueri
  • Laravel Version: 8.48.1

  • PHP Version: 7.4.19

  • Database Driver & Version: 10.3.27-MariaDB

Description:

When I call on an Eloquent Model the updateOrInsert() method, it returns a Illuminate\Database\Eloquent\Builder object, however regarding the documentation it should return a boolean.

screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions