title: How to open PDF view page in new tab in laravel 5 using controller code?
body: <p>Actually i want to open a pdf page in new tab when we save data of user,but that page where we submit the form , redirect to same page.</p>
  
  <pre><code>public function store(Request $request) {
  
          $user = new UserDetail([
              'full_name' =&gt; $request-&gt;get('full_name'),
              'street_address' =&gt; $request-&gt;get('street_address'),
              'city' =&gt; $request-&gt;get('city'),
              'zip_code' =&gt; $request-&gt;get('zip_code'),
          ]);
  
          $user-&gt;save();
          $user = UserDetail::find($user-&gt;id);
  
          $pdf = PDF::loadView('pdf', compact('user'));
          //return $pdf-&gt;download('invoice.pdf');
          return Redirect::away($pdf-&gt;download('invoice.pdf'));
          //return redirect('/index');
      }
  </code></pre>
  
  <p>any one help me?</p>