I recently started using PhpStorm though I don't think the problem is only about this specific IDE.
It provides a great help with the auto-complete feature but there's a problem with the interfaces. I used the exactly same interface structure with the one used in this video. Codes are working perfectly but IDE cannot understand that UserRepositoryInterface
is currently implemented by EloquentUserRepository
which is defined in the relevant service provider as App::bind('UserRepositoryInterface', 'EloquentUserRepository')
I searched for a little while but couldn't find any solution. How can I tell PhpStorm that when I write $this->table->
in my controller, it should auto-complete from my User.php
model?
BTW, I'm using this package: https://github.com/barryvdh/laravel-ide-helper