laravel-shift/blueprint

Generate comment blocks with model relationships

striderwhitepderas opened this issue · 2 comments

Synopsis:

It would be nice if blueprint generated relationships with a comment block/header. At minimum where it stipulated its return type.

Proposed Syntax:

For example, stipulate the return type in the comment header

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function clips()
    {
        return $this->hasMany(Clip::class);
    }

Does this not happen if you enable the DocBlock comments within the configuration?

Closing as the new default behavior is to add the return type hint.