title: Argument 1 passed to Illuminate\Database\Eloquent\Relations\HasOneOrMany::save() must be an instance of Illuminate\Database\Eloquent\Model
body: <p>I am pretty new to Laravel and I am trying to add the post, create by a user into the database. But when I do so, following error comes:</p>
  
  <blockquote>
    <p>Argument 1 passed to Illuminate\Database\Eloquent\Relations\HasOneOrMany::save() 
    must be an 
    instance of Illuminate\Database\Eloquent\Model, string given, 
    called in C:\xampp\htdocs\lar\app\Http\Controllers\PostController.php on line<br>
    25 and defined</p>
  </blockquote>
  
  <p>User model:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Contracts\Auth\Authenticatable;
  use Illuminate\Database\Eloquent\Model;
  
  class User extends Model implements Authenticatable
  {
      use \Illuminate\Auth\Authenticatable;
  
      public function posts()
      {
          return $this-&gt;hasMany('App\Post');
      }
  }
  </code></pre>
  
  <p>Post Model:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Post extends Model
  {
      public function user()
      {
          return $this-&gt;belongsTo('App\User') ;
      }
  }
  </code></pre>
  
  <p>PostController:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Post;
  use Illuminate\Http\Request;
  
  class postController extends Controller
  {
      public function postCreatePost(Request $request){
          // Validation
          $post = new Post();
          $post-&gt;$request['body'];
          $request-&gt;user()-&gt;posts()-&gt;save('$post');
          return redirect()-&gt;route('dashboard');
      }
  }
  </code></pre>
  
  <p>Post Route:</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::post('/createpost',[
      'uses' =&gt; 'PostController@postCreatePost',
      'as'=&gt;'post.create'
  ]);
  </code></pre>
  
  <p>Form action:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form action="{{route('post.create')}}" method="post"&gt;
  </code></pre>
  
  <p>Please tell me how to fix this.. How to fix this?
  Thank you in advance.. :)</p>