ansioso cargando en la relación perteneciente

class Post extends Model
{
   //in case of belongs to relationship we need to specify foreign key
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
Code Alchemy