laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

@mixin Builder instead of @mixin Eloquent?

Open drakanor opened this issue 2 years ago • 5 comments

I'm on Laravel 9 but still getting @mixin Eloquent instead of @mixin Builder from ide-helper after "artisan ide-helper:models", which doesn't work for static methods like ::where() on my models. Any idea how tell ide-helper to do that? Or another way to achieve that? Thanks! :)

drakanor avatar Nov 25 '22 16:11 drakanor

Just waiting here with you for a fix...

artzwinger avatar Dec 17 '22 02:12 artzwinger

any news on this?

gogoladzeluk avatar Feb 26 '23 22:02 gogoladzeluk

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.

stale[bot] avatar Jun 18 '23 08:06 stale[bot]

same issue :(

bbbbobs avatar Jul 09 '23 10:07 bbbbobs

Hi, This is a workaround, but try adding @mixin \Eloquent to the actual model class

e.g.:

/**
 * @mixin \Eloquent
 */
class Dummy extends Model
{
    // ...snip
}

yaegassy avatar Aug 17 '23 03:08 yaegassy