Skip to content

Duplicated use Illuminate\Database\Eloquent\Model in src/Relations/BelongsToMany.php #2520

@lbrutti

Description

@lbrutti

hello,
going trough the library code to understand how relationships work, i noticed this weird import in in src/Relations/BelongsToMany.php:

namespace Jenssegers\Mongodb\Relations;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Database\Eloquent\Relations\BelongsToMany as EloquentBelongsToMany;
use Illuminate\Support\Arr;

class BelongsToMany extends EloquentBelongsToMany
`

I'm wondering it it's a typo or has some sense.

Thanks

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