title: laravel 5.7 how to pass request of controller to model and save
body: <p>I am trying to pass <code>$request</code> from a function in controller to a function in model.</p>
  
  <p>THis is my controller function:</p>
  
  <p>PostController.php</p>
  
  <pre><code>public function store(Request $request, post $post)
  {
  
      $post-&gt;title = $request-&gt;title;
      $post-&gt;description = $request-&gt;description;
  
      $post-&gt;save();
  
      return redirect(route('post.index'));
  
  }
  </code></pre>
  
  <p>how save data in model Post.php?</p>
  
  <p>I want the controller to only be in the role of sending information. Information is sent to the model. All calculations and storage are performed in the model</p>
  
  <p>Thanks</p>