title: Call to a member function create() on null - laravel
body: <p>I would like to create a post using the current user in Auth.
  But i have my error.</p>
  
  <p>Thank you!</p>
  
  <p>Controller</p>
  
  <pre><code>public function publish(Post $post){
      $this-&gt;validate(request(), [
                  'title' =&gt; 'required',
                  'body'  =&gt; 'required'
              ]);
  
  
              auth()-&gt;user()-&gt;publish(
                  new Post(request(['title','body']))
              );
          }
  </code></pre>
  
  <p>User model:</p>
  
  <pre><code>public function posts()
      {
          $this-&gt;hasMany(Post::class);
      }
  
  
  public function publish(Post $post)
  {
      $this-&gt;posts()-&gt;save($post);
  }
  </code></pre>
  
  <p>Error
  Call to a member function save() on null</p>