あなただけの学習ロードマップを作成します 【随時受付中】
return hasMany(Comment::class) ではなく return $this->hasMany(Comment::class) と $this-> がつくのはなぜでしょうか?
return hasMany(Comment::class)
return $this->hasMany(Comment::class)
$this->
この回答を見るにはプレミアムプランへの登録が必要です