title: Convert array to Request object in laravel 5
body: <p>I have store method in user controller like this </p>
  
  <pre><code>public function store(Request $request)
  {
      User::create($request-&gt;all()); 
  
  }
  </code></pre>
  
  <p>and in another controller I want use this method </p>
  
  <pre><code> public function test(Request $request)
  {
    .....
     app('\App\Http\Controllers\UserController')-&gt;store($test_array);
    ...
  }
  </code></pre>
  
  <p>and <code>$test_array</code> is:</p>
  
  <pre><code>{"name":"test","email":"test@gmail.com"}
  </code></pre>
  
  <p>and finally show me error this</p>
  
  <blockquote>
    <p>Argument 1 passed to App\Http\Controllers\UserController::store() must be an instance of Illuminate\Http\Request, </p>
  </blockquote>
  
  <p>How can I convert array to Request object?</p>