title: Laravel redirect->back() return empty params
body: <p>I have a <strong>index.blade.php</strong> page, I have a this code that shows alerts success or errors:</p>
  
  <pre><code>    &lt;!-- ALERTS --&gt;
      @if (isset($msg))
          @if ($msg_type == 'error')
              &lt;div id="alert" class="alert alert-danger" role="alert"&gt;{{ $msg }}&lt;/div&gt;
          @else
              &lt;div id="alert" class="alert alert-success" role="alert"&gt;{{ $msg }}&lt;/div&gt;
          @endif
          &lt;script&gt;setTimeout("document.getElementById('mensajecarrito').style.display='none'",6000);&lt;/script&gt;
      @endif
      &lt;!-- //ALERTS --&gt;
  </code></pre>
  
  <p>This index have a form, and this form url POST to the post_designs url, and this is his controller method:</p>
  
  <pre><code>public function postDesign() {
  
          if (Session::has('FUNCTION'))
                  $function = Session::get('FUNCTION');
  
              if (Input::has('FUNCTION'))
                  $function = Input::get('FUNCTION'); 
  
              if (isset($function))
              {           
                  switch($function)
                  {
                      case 'createDesign':   
  
                          try
                          {   
                              //do something good
                              $msg_type = 'success';                      
                              $msg = 'Design created successfully';     
                          }
                          catch(FotiApiException $e)
                          {
                              $msg_type = 'error';                    
                              $msg = 'Unexpected error';       
                          }
  
                      break;
                  }                           
              }
  
  
  
          return back()-&gt;with(array('msg' =&gt; $msg, 'msg_type' =&gt; $msg_type));
      }
  </code></pre>
  
  <p><strong>The problem is, that the $msg and $msg_type variables are empty when return back to my index.blade.php...</strong></p>
  
  <p>I don´t understand, my project is Laravel 5.2.3 and I have the correct route Middleware:
  
  
  <pre><code>Route::group(['middleware' =&gt;[ 'web']], function () {
  
      # Index
      Route::get('/',['as'=&gt; 'index','uses' =&gt; 'WebController@getIndex']);
  
      // # POSTS
      Route::post('/post-design', ['as' =&gt; 'post_design', 'uses' =&gt; 'WebController@postDesign']);
  
  });
  </code></pre>