Did you add the phpdocs to your class?
/**
* Make a person
*
* @return static
* @static
*/
public static function make($name, $surname)
{
return new static($name, $surname);
}
I don't add. Does phpdoc relation with ide helper?
The ide-helper generates a file based on the phpdocs from the core laravel classes. So yes, it uses phpdocs. But it doesn't do anything with your own classes, that is just plain autocomplete from phpStorm or whatever you are using. If you want to have autocompletion, provide correct phpdocs.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community