0👍
Are you setting up the inverse relationship at the Post-Model correctly?
It should be something like:
// Post.php
public function user()
{
return $this->belongsTo(User::class);
}
Source:stackexchange.com
0👍
Are you setting up the inverse relationship at the Post-Model correctly?
It should be something like:
// Post.php
public function user()
{
return $this->belongsTo(User::class);
}