By @boris · 2021-08-30 14:36
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) ;-)
By @macbookandrew · 2021-09-02 15:57
Looks like Visual Studio Code; this PHP Intelephense plugin is the best I’ve found for providing PHP autocompletion and other IDE-type features.