title: laravel 5 : How to return view with response
body: <p>I have two <code>return</code> in my controller method. </p>
  
  <p>For view :</p>
  
  <pre><code>return view('user.profile',compact('user','tickets'));
  </code></pre>
  
  <p>For response :</p>
  
  <pre><code>return response()-&gt;json(array('someData1'=&gt;$someData1,'someData2' =&gt; $someData2));
  </code></pre>
  
  <p>How can I combine both?</p>