SaloRB opened this issue 5 years ago · 0 comments
I'm getting the error on PostsController
auth()->user()->posts()->create($data);
User.php is creating the function posts: public function posts() { return $this->hasMany(Post::class); }
public function posts() { return $this->hasMany(Post::class); }