title: Laravel send variable to the view
body: <h2>routes.php</h2>
  
  <pre><code>    Route::post("/{user}/{char_name}", array(
          'as' =&gt; 'char-profile-post',
          'uses' =&gt; 'ProfileController@postDropDownList'));  
  
      Route::get("/{user}/{char_name}", array(
          'as' =&gt; 'char-profile-get',
          'uses' =&gt; 'ProfileController@getDropDownList'));  
  </code></pre>
  
  <h2>ProfileController.php</h2>
  
  <pre><code>public function postDropDownList($user, $char_name) {
  
  $user = Auth::user();
  $char_name = Input::get('choose');
  $char_name_obj = User::find($user-&gt;id)-&gt;characters()-&gt;where('char_name', '=', $char_name)-&gt;first();
  
  return Redirect::route('char-profile-get', array(Session::get('theuser'), $char_name_obj-&gt;char_name));
  
    }
  
  
  public function getDropDownList($user, $char_name) {
  
  return View::make('layout.profile')
              -&gt;with('char_name', $char_name);
   }
  </code></pre>
  
  <h2>Snippet from layout.profile View</h2>
  
  <pre><code> &lt;form action="{{ URL::route('char-profile-post') }}" method="post"&gt;
           &lt;select name="choose"&gt;
              &lt;option value="choose"&gt;Choose a character&lt;/option&gt;
  
                   @foreach($char_name as $c)
                   &lt;option&gt; {{ $c-&gt;char_name }} &lt;/option&gt;
                   @endforeach
  
           &lt;/select&gt;
           &lt;input type="submit" value="Ok"&gt;
              {{ Form::token() }}
          &lt;/form&gt;
  </code></pre>
  
  <blockquote>
    <p>ErrorException<br>
    Undefined variable: char_name<br>
    (View: C:\wamp\www\CaughtMiddle\tutorial\app\views\layout\profile.blade.php)</p>
  </blockquote>
  
  <p>When writing the following I still receive this error.</p>
  
  <pre><code>&lt;option&gt; {{ $char_name['char_name'] }} &lt;/option&gt;
  </code></pre>
  
  <p>My question is pretty obvious. Am I doing something wrong, or Laravel is truly incapable to send a couple of variables from the controller to the view?</p>