This packages generates a file that your IDE can understand, so it can provide accurate autocompletion. Generation is done, based on the files in your project, so they are alway up-to-date. If you don't want to generate it, you can add a pre-generated file to the root folder of your laravel project. (But this isn't as up-to-date as self generated files)
If you don't want to write your properties yourself, you can use the command ide-helper:models
to generate
phpDocs, based on table columns, relations and getters/setters.
The IDE-Helper will now detect some Interfaces and replace those with the real classes. You can also add your own interfaces. This means you can let the ide-helper replace \Illuminate\Auth\UserInterface
with \User
, so Auth::user()
will return your real User class :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community