Skip to content

My project can't find Prunable trait #3448

@carloszimm

Description

@carloszimm
  • Laravel-mongodb Version: 4.9
  • PHP Version: 8.3
  • Database Driver & Version: 1.21.0

Description:

My project is not able to find the trait MongoDB\Laravel\Eloquent\Prunable. MassPrunable works fine but not normal Prunable. I checked both the documentation of version 4.x and 5 and both list the trait; however, when I try to import it in PHPStorm, it can't find it. I checked the codebase, and, apparently, it doesn't exist either. Is that something dependable on the newest mongodb driver?

Steps to reproduce

  1. Try to use Prunable in a model
  2. The IDE can only find the common Eloquent Prunable

Expected behaviour

It should be imported correctly.

Actual behaviour

Undefined class 'Prunable'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions