You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated class has @mixin IdeHelperUser. This looks like a mistake to me because IdeHelperUser appears to not exist
The generated class extends \Eloquent. I suspect this is the problem, because with --write-mixin, the generated class is missing the methods provided by \Eloquent
Steps To Reproduce:
Generate facades helper and models helper with --write-mixin:
Versions:
Description:
Model methods are missing when using
--write-mixin
--write-mixin
--write-mixin
Basic model methods like
find
appear to be missing when using--write-mixin
. They work correctly without--write-mixin
I've reproduced the following steps in this repo: https://github.com/ptrkcsk/laravel-ide-helper-models
There are two differences in
_ide_helper_models.php
between using--write-mixin
and not, as seen here: https://github.com/ptrkcsk/laravel-ide-helper-models/compare/write-mixin...no-write-mixin@mixin IdeHelperUser
. This looks like a mistake to me becauseIdeHelperUser
appears to not exist\Eloquent
. I suspect this is the problem, because with--write-mixin
, the generated class is missing the methods provided by\Eloquent
Steps To Reproduce:
Generate facades helper and models helper with
--write-mixin
:Try to use a model's
find
method, e.g.User::find()
. Notice "Method 'find' not found..." warning in IDERe-generate models helper without
--write-mixin
:Try to use a model's
find
method again. Noticefind
method is now foundThe text was updated successfully, but these errors were encountered: