title: Can't access that on routing Laravel
body: <p>I am trying out Laravel and I am in a little jam although I have not being able to get passed it.</p>
  
  <p>I saved data into database which was quite successful but I want to redirect to another page with some information. Redirect was successful but I can't access the data.</p>
  
  <p>My codes are below;</p>
  
  <p>mycontroller.php</p>
  
  <pre><code> public function AddSales(){
  
     $userid  = Input::get("userid");//user ID
  
    //insert details sales
      $sales=new Sales();
      $sales-&gt;member_id=$userid;
      $sales-&gt;sales='0';
      $sales-&gt;pay_month='none';
      $sales-&gt;pay_year='0';
      $sales-&gt;pay_date='none';
      $sales-&gt;save();
  
      $newmember = Member::select('lname','oname')-&gt;where('user_id', '=',$userid)-&gt;get();
  
  
      return Redirect::route("upload")-&gt;with("newMember",$newmember);
  
  }
  </code></pre>
  
  <p>Route.php</p>
  
  <pre><code>//upload passport page
  Route::get('upload', array("as" =&gt; "upload",'before' =&gt; 'auth', function(){
      return View::make('user.uploadpassport');
  }));
  </code></pre>
  
  <p>uploadpassport.blade.php</p>
  
  <pre><code>@foreach ($newMember as $newMembers)
     {{$newMembers-&gt;lname}}
  @endforeach
  </code></pre>
  
  <p>note: this code is reduced for brevity</p>
  
  <p>The error I encounter is that $newMember is not defined, although the data is saved successfully.</p>