title: retrieve value from session in laravel route
body: <p>in route cats/create,I post a form with a validation.it will redirect to cats/create if don't accord with the regulation.I want to retrieve the  $validation_result->messages() in action of cats/create.Will these be possible?the result of dd($message) is null:</p>
  
  <pre><code>Route::get('cats/create', function() {
  $message=Session::get('message');
  dd($message);
  if($message-&gt;has('name')){    
  foreach ($message-&gt;get('name') as $messageone){
  echo $messageone;
    }
  }
  $cat = new Cat;
  return View::make('cats.edit')
                  -&gt;with('cat', $cat)
                  -&gt;with('method', 'post');
  });
  
  
  Route::post('cats', function() {
  
  $rules = array(
      'name' =&gt; 'required|min:3', // Required, &gt; 3 characters
      'date_of_birth' =&gt; array('required', 'date') // Must be a date
  );
  $formresult=Input::all();
  
  $validation_result = Validator::make($formresult,$rules);
  
  if($validation_result-&gt;fails()){
      return Redirect::back()-&gt;with('message', $validation_result-&gt;messages());
  }else{
  
  $cat = Cat::create($formresult);
  $cat-&gt;user_id = Auth::user()-&gt;id;
  if ($cat-&gt;save()) {
      return Redirect::to('cats/' . $cat-&gt;id)
                      -&gt;with('message', 'Successfully created profile!');
  } else {
      return Redirect::back()
                      -&gt;with('error', 'Could not create profile');
  }
  }
  });
  </code></pre>
  
  <p>but when I retrieve data from session in blade file,it is possible:</p>
  
  <pre><code>@if(Session::has('message'))
  &lt;div class="alert alert-success"&gt;
  {{Session::get('message')}}
  &lt;/div&gt;
  @endif
  </code></pre>
  
  <p>why? I cannot understand about this.</p>