title: Laravel - Get a data from a form
body: <p>I'm working on a form (without MySQL for the moment) in order to get a data from an input with a confirm message page like "Congratulations $pseudo, your subscribe is successful".</p>
  
  <p><strong>Problem</strong> : I can't display the data what I inserted into my form.</p>
  
  <p><strong>Guideline</strong> : I think the problem is on my controller in the postUsers method but I don't know how to resolve it.</p>
  
  <p>Here is my form (<strong>subscribe.blade.php</strong>)</p>
  
  <pre><code>@extends('template')
  
  @section('contenu')
  &lt;div class="container"&gt;
  &lt;h1&gt;Inscription&lt;/h1&gt;
  {!! Form::open(['url' =&gt; 'users/confirm']) !!}
      &lt;div class="form-group has-feedback {!! $errors-&gt;has('pseudo') ? 'has-error' : '' !!}"&gt;
          &lt;label for="pseudo"&gt;Pseudonyme&lt;/label&gt;
          {!! Form::text('pseudo', null, ['class' =&gt; 'form-control', 'id' =&gt; 'id_pseudo', 'placeholder' =&gt; 'Votre pseudonyme']) !!}
          {!! $errors-&gt;first('pseudo', '&lt;small class="help-block"&gt;:message&lt;/small&gt;') !!}
      &lt;/div&gt;
  {!! Form::submit('Inscription', ['class' =&gt; 'btn btn-default']) !!}
  {!! Form::close() !!}
  &lt;/div&gt;
  @endsection
  </code></pre>
  
  <p>Here is the confirm page (<strong>confirm.blade.php</strong>)</p>
  
  <pre><code>@extends('template')
  
  @section('contenu')
  &lt;br&gt;
  &lt;div class="col-sm-offset-3 col-sm-6"&gt;
      &lt;div class="panel panel-info"&gt;
          &lt;div class="panel-heading"&gt;Validation&lt;/div&gt;
          &lt;div class="panel-body"&gt;
             Féicitations&lt;?php Request::input('pseudo')?&gt;, vous êtes inscrit sur le site ! Vous pouvez dès à présent vous connecter.
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  @endsection
  </code></pre>
  
  <p>Here is my routes (<strong>routes.php</strong>)</p>
  
  <pre><code>Route::get('users', 'UsersController@getUsers');
  Route::get('users', 'UsersController@postUsers');
  </code></pre>
  
  <p>And the controller (<strong>UsersController.php</strong>)</p>
  
  <pre><code>class UsersController extends Controller
  {
  public function getUsers(){ 
      return view('confirm');
  }
  
  public function postUsers(Request $request){ 
      return 'Le nom est ' . $request-&gt;input('pseudo');
  }
  }
  </code></pre>
  
  <p>I hope it can helps you to resolve this little problem, I'm following a course about laravel and this framework is facinating for me ^^</p>
  
  <p>Thank you a lot for taking time on my problem. Have a nice day :)</p>