Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eloquent\Model multiple implementation #451

Closed
iboldurev opened this issue Feb 19, 2017 · 7 comments
Closed

Eloquent\Model multiple implementation #451

iboldurev opened this issue Feb 19, 2017 · 7 comments

Comments

@iboldurev
Copy link
Contributor

iboldurev commented Feb 19, 2017

Hi, autocomplete models in phpstorm not work.

Laravel 5.4.12
Ide-Helper v2.3.0

If delete a file _ide_helper.php that autocomplete in model file work.

2017-02-19 16 52 43

@rokde
Copy link

rokde commented Feb 20, 2017

Version 2.2.3 is correct. 2.3.0 same error like shown.

@barryvdh
Copy link
Owner

It's not an error, it's a warning. But doesn't it work now then?

barryvdh added a commit that referenced this issue Feb 20, 2017
@barryvdh
Copy link
Owner

Can you try with 25c8de6 ?

@rokde
Copy link

rokde commented Feb 20, 2017

Yes, that works! ;)

@iboldurev
Copy link
Contributor Author

@barryvdh Thanks, it works

@barryvdh
Copy link
Owner

Can you try with https://github.com/barryvdh/laravel-ide-helper/releases/tag/v2.3.2 ? Should be able to complete when extending Eloquent or using @mixin \Eloquent

@cviebrock
Copy link

cviebrock commented Apr 25, 2017

I'm using 2.3.2 in a new Laravel 5.4 project. I've also used

php artisan ide-helper:models --nowrite

to put the annotations in a separate file. Naturally, this means I get the warning from PHPStorm: "Other declaration of class User exist at User.php" for my models.

Is there a solution to this when using a separate _ide_helper_models.php file?

(this might now be a dupe of #430)

fatihdirikman added a commit to fatihdirikman/Laravel-IDE-Helper that referenced this issue Jan 7, 2022
cgxxv pushed a commit to cgxxv/laravel-ide-helper that referenced this issue Mar 25, 2022
renaforsberg824 added a commit to renaforsberg824/ide-helper-laravel-developer that referenced this issue Oct 5, 2022
lisadeloach63 added a commit to lisadeloach63/ide-helper-reso-laravel that referenced this issue Oct 7, 2022
sadafrangian3 pushed a commit to sadafrangian3/ide-helper-laravel that referenced this issue Oct 18, 2022
smile1130 added a commit to smile1130/laravel-IDE that referenced this issue Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants