title: how to pass data from one application to another in Laravel?
body: <p>I want to pass data from one application to another in Laravel..</p>
  
  <p>Suppose I want to take user data from one application and I want to send this data to another application form.</p>
  
  <p>I wanted to send it this way..But I'm getting Error..
  So if anyone could suggest any solution for this..would be appreciated ..</p>
  
  <pre><code>public function store(Request $request)
      {
          $payment = new Payment();
          $payment-&gt;username = $request-&gt;Input(['username']);
          $payment-&gt;price = $request-&gt;Input(['price']);
          $payment-&gt;purchase_id = $request-&gt;Input(['purchase_id']);
          $payment-&gt;save();
          $store_id =\Hash::make($payment-&gt;id);
          $price = $payment-&gt;price; 
  
          return \Redirect::to('http://localhost/blog/public/getPayment');
      }
  </code></pre>
  
  <p>And I get the following Error:</p>
  
  <blockquote>
  <pre><code>InvalidArgumentException in Response.php line 462:
  The HTTP status code "0" is not valid.
  </code></pre>
  </blockquote>