adding docblock and escaping dollar sign

This commit is contained in:
Brian 2022-07-19 13:35:45 -06:00
parent 3adc226ad5
commit 66f8bde4a5
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -180,9 +180,16 @@ protected function attrName(): Attribute
| |
*/ */
/**
* Something relationship.
*
* @since 1.0.0
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function something(): BelongsTo public function something(): BelongsTo
{ {
return $this->belongsTo( return \$this->belongsTo(
related: Something::class, related: Something::class,
foreignKey: 'something_id', foreignKey: 'something_id',
); );