laravel-ide-helper
laravel-ide-helper copied to clipboard
Support for `@property` annotation generation on appended attributes
Versions:
- ide-helper Version: 2.12.3
- Laravel Version: 8.75
- PHP Version: 8.1.1
Question:
Is there a support for appended properties when generating models ?
class MyModel extends Model
{
/**
* @var array<int, string>
*/
protected $appends = ['is_completed'];
public function isCompleted(): Attribute
{
return new Attribute(
get: fn () => $this->amount !== null,
);
}
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
Hi,
will this be supported?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.