adding docblock and escaping dollar sign
This commit is contained in:
parent
3adc226ad5
commit
66f8bde4a5
@ -180,9 +180,16 @@ protected function attrName(): Attribute
|
||||
|
|
||||
*/
|
||||
|
||||
/**
|
||||
* Something relationship.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function something(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(
|
||||
return \$this->belongsTo(
|
||||
related: Something::class,
|
||||
foreignKey: 'something_id',
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user