when i update to Laravel v5.4.12
i use IDE Helper v2.2 ( i update it to the Dev Version v2.3.0 still the same )
only when i delete the "_ide_helper.php" the autocomplete works fine.
only .phpstorm.meta.php & _ide_helper_models.php works fine
Same here.
barryvdh/laravel-ide-helper v2.3.0
laravel/framework v5.4.11
PhpStorm 2016.3.1
Build #PS-163.9735.1
Hmm, I haven't seen such problems lately. Need to check..
Can you give an example of situation when autocomplete doesn't work?
For example, create a new model: php artisan make:model Test
````php
// File: Test.php
namespace App\Db;
use Illuminate\Database\Eloquent\Model;
class Test extends Model
{
//
}
````
Within this class, PHPStorm nags about "multiple definitions" of Model, one of which is to be found in _ide_helper.php. PHPStorm won't show any autocompletion, nothing about properties overwritten or inherited, and so forth...
Deleting the Model part from _ide_helper.php solves the problem for me so far.
I didn't experience this behaviour in laravel-ide-helper in combination with Laravel 5.1 or 5.2 using an identical setup like the project in question here. PHPStorm does complain about "multiple definitions" in the latter cases as well, but still autocompletion and all the other inspections continue to work.
If I can provide more information regarding this, I would be glad to help.
I'm seeing the same issue with 2.3.0; Eloquent mixin doesn't seem to work, so methods like belongsTo, save, etc. are not recognized by PhpStorm. Downgrading to 2.2.3 resolved this issue.
Running latest stable release of PhpStorm (2016.3.2, Build #PS-163.10504.2) and php 5.6.29 (installed through brew) on Mac OSX 10.10.5 and my laravel framework is at version 5.4.12.
You can install it with v2.3.1 in a couple of minutes; https://github.com/barryvdh/laravel-ide-helper/releases/tag/v2.3.1
Using 2.3.1 fixes the issue with belongsTo and such, but now static methods aren't found in the models.
Are you extendin Eloquent or Model?
I'm extending Eloquent and have @mixin Eloquent in my phpDoc
And with @mixin \Illuminate\Database\Eloquent\Builder instead of Eloquent?
Yes, that is working! Should that be the default output from the ide-helper:models ?
Duplicate #451
Update: External access to static methods (like find) on models is still not recognized as valid by PhpStorm.
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
With v2.3.2 PHPStorm still "complains" about multiple definitions (which is to be expected), but overwritten properties and auto completion works for me again like I was used to.
Autocomplete on models works correctly with 2.3.2, including static calls.
Not sure if related, but I did see a new issue where Route::middleware and Route::prefix weren't found on the facade:

having the same issue. I always get "multiple definitions ..." error(s) for eloquent models from phpstorm's inspector
Has anyone figured out how to solve the "multiple definitions" error? It prevents autocomplete in phpStorm 馃槥
It shouldn't prevent autocomplete, but add them both :(
Yeah, turns out it doesn't prevent autocomplete after all. But for some reason, phpStorm isn't able to follow relationships. I can't get any autocomplete on Foobar::firstOrCreate()
What's even more interesting is that phpStorm for some reason marks barbar() not found in for example$foobar->barbar()->create(), even though barbar() is public function barbar() inFoobar and defines a belongsTo relationship.
Is there any way around the multiple definitions warnings? I have the exact same problem, using a seperate models file with ide helper. For me $domain->tags() doesn't work with autocompletion or clicking on it, because of the multiple class name definitions.
I would rather not have ide helper overwrite my models, any other way? 馃
How to fix in phpstorm?
Method 'prefix' not found in Route
I'm having problems with Route facade too, method prefix is not defined using lastest version on Laravel 5.4
Route::middleware and Route::prefix not working too Laravel 5.5
Route::middleware still not work :s
Route::prefix still appears to not be recognised in 5.6
The same for $this->app->routesAreCached() inside a service provider.

Ugh, this issue turned into a bit of dumpster for a lot of different things :>
The initial issue was fixed with 2.3.2, as for the other small things: is suggest to re-check with the latest version if it's still broken and then search issues and comment/vote on existing one or create new issue for dedicated problems.
@barryvdh I vote for closing this one :}
Most helpful comment
Route::middleware and Route::prefix not working too Laravel 5.5