title: Getting cURL error 3: <url> malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) error after saving models in laravel 5.4
body: <p>I am having this error <code>cURL error 3: &lt;url&gt; malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)</code> after saving/creating multiple models to database.</p>
  
  <p>I have this in my controller:</p>
  
  <pre><code>public function storeTruck(Request $request){
      //Save Company Detail
      $company = Company::Create($request-&gt;only(['company']));
      // Save Trucker Info
      $request-&gt;request-&gt;add(['password'=&gt;bcrypt('trucker')]);
      $request-&gt;request-&gt;add(['company_id'=&gt;$company-&gt;id]);
      $trucker = Trucker::create( $request-&gt;only([
          'first_name','last_name','company',
          'email','contact', 'password', 'company_id'
      ]));
      return view('admin.truck.list'); 
  }
  </code></pre>
  
  <p>Those models are saved successfully in database but it will then proceed to a <code>cURL error 3</code> problem. What causes this error based on the codes? Please advice. Thanks.</p>