2023年4月10日解決済み

$this->hasMany() メソッド に $this-> が付くのはなぜでしょうか?

ユーザー

return hasMany(Comment::class) ではなく return $this->hasMany(Comment::class) と $this-> がつくのはなぜでしょうか?

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?