Factory autocompletion

By @boris · 2021-08-30 14:36

Factory autocompletion

  • By @ralphjsmit · 2021-08-31 09:05

    Wow, what’s that auto complete that you’re showing in the first image?

    • By @samuel · 2021-08-31 18:32

      Seems to be a method on the User model — since the factory create() method returns an instance of User (the code in the post adds that annotation), it knows what's available on the returned value.

      • By @ralphjsmit · 2021-09-01 05:49

        Yes, thank you, I understand that part. Perhaps I was not clear, but I meant that dropdown itself, not the code in it. I’ve never een a code editor yet that does that sort of thing, so I was wondering which editor it was (or perhaps the whole image was created specifically for this thread) ;-)