The problem would be that I use PhpStorm IDE. The Laravel project is managed by nwidart/laravel-modules.
However, PhpStorm does not handle basic Laravel functions. For example: findorfail()
, for own models:
Method 'findorfail' not found in \Modules\Companies\Models\Companies_adresses
I did the following to enable autocomplete:
- install https://github.com/barryvdh/laravel-ide-helper#automatic-phpdoc-generation-for-laravel-facades
- Enable PhpStorm plugins:
It is very confusing because it does not give tips correctly. It does not list database columns, etc... PHPDoc still came to mind, but I don't know how to get started!
You have no ideas? I feel completely lost :(