Added condition to Auth:user()->id which fixed error