title: Laravel 5.2 form validation request not working properly
body: <p>When I hit submit button nothing happens its just refreshing the page.</p>
  
  <p>Here's my code:</p>
  
  <p><strong>app/Http/routes.php</strong></p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web']], function () {
      Route::get('profile/edit', 'UserController@editProfile');
      Route::post('update_name', 'UserController@updateName');
  });
  </code></pre>
  
  <p><strong>app/Http/Request/UpdateNameRequest.php</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Requests;
  
  use App\Http\Requests\Request;
  use Illuminate\Support\Facades\Auth;
  
  class UpdateNameRequest extends Request
  {
      /**
       * Determine if the user is authorized to make this request.
       *
       * @return bool
       */
      public function authorize()
      {
          return Auth::check();
      }
  
      /**
       * Get the validation rules that apply to the request.
       *
       * @return array
       */
      public function rules()
      {
          return [
              'first_name' =&gt; 'required|min:2|alpha',
              'last_name' =&gt; 'required|min:2|alpha',
          ];
      }
  }
  </code></pre>
  
  <p><strong>app/Http/Controllers/UserController.php</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Auth;
  use App\Http\Requests;
  use App\User;
  
  class UserController extends Controller
  {
      public function __construct() {
          $this-&gt;middleware('auth');
      }
  
      public function editProfile() {
          if (Auth::user()-&gt;role_id === 3) {
              return view('profile.crew.edit');          
          }
      }
  
      public function updateName(Requests\UpdateNameRequest $request) {
          return dd($request-&gt;all());
      }
  }
  </code></pre>
  
  <p><strong>and here's the html form</strong></p>
  
  <pre><code>{!! Form::open(array('url' =&gt; 'update_name')) !!}
  &lt;div class="form-group{{ $errors-&gt;has('first_name') ? ' has-error' : '' }}"&gt;
      &lt;label class="control-label"&gt;First Name&lt;/label&gt;
      &lt;input type="text" class="form-control" name="first_name" value="{{ old('first_name') }}" placeholder="{{ Auth::user()-&gt;first_name }}"&gt;
  
      @if ($errors-&gt;has('first_name'))
          &lt;span class="help-block"&gt;
              &lt;strong&gt;{{ $errors-&gt;first('first_name') }}&lt;/strong&gt;
          &lt;/span&gt;
      @endif
  &lt;/div&gt;
  &lt;div class="form-group{{ $errors-&gt;has('last_name') ? ' has-error' : '' }}"&gt;
      &lt;label class="control-label"&gt;Last Name&lt;/label&gt;
      &lt;input type="text" class="form-control" name="last_name" value="{{ old('last_name') }}" placeholder="{{ Auth::user()-&gt;last_name }}"&gt;
  
      @if ($errors-&gt;has('last_name'))
          &lt;span class="help-block"&gt;
              &lt;strong&gt;{{ $errors-&gt;first('last_name') }}&lt;/strong&gt;
          &lt;/span&gt;
      @endif
  &lt;/div&gt;
  &lt;button type="submit" class="btn btn-success"&gt;Update name&lt;/button&gt;
  {!! Form::close() !!}
  </code></pre>
  
  <p><strong>for reference heres the form output</strong></p>
  
  <pre><code>&lt;form method="POST" action="http://localhost:8000/update_name" accept-charset="UTF-8"&gt;
      &lt;input name="_token" type="hidden" value="VViupfPaPCQCk5aeUdc27Pt2Z8J7Hx1Y2khC0IY9"&gt;
      &lt;div class="form-group"&gt;
          &lt;label class="control-label"&gt;First Name&lt;/label&gt;
          &lt;input type="text" class="form-control" name="first_name" value="" placeholder="Hans"&gt;
  
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label class="control-label"&gt;Last Name&lt;/label&gt;
          &lt;input type="text" class="form-control" name="last_name" value="" placeholder="Padberg"&gt;
  
      &lt;/div&gt;
      &lt;button type="submit" class="btn btn-success"&gt;Update name&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>here's my output in php artisan route:list</strong></p>
  
  <pre><code>+--------+----------+-------------------------+------+-----------------------------------------------------------------+--------------+
  | Domain | Method   | URI                     | Name | Action                                                          | Middleware   |
  +--------+----------+-------------------------+------+-----------------------------------------------------------------+--------------+
  |        | GET|HEAD | /                       |      | Closure                                                         | web          |
  |        | GET|HEAD | home                    |      | App\Http\Controllers\HomeController@index                       | web,web,auth |
  |        | GET|HEAD | login                   |      | App\Http\Controllers\Auth\AuthController@showLoginForm          | web,guest    |
  |        | POST     | login                   |      | App\Http\Controllers\Auth\AuthController@login                  | web,guest    |
  |        | GET|HEAD | logout                  |      | App\Http\Controllers\Auth\AuthController@logout                 | web          |
  |        | POST     | password/email          |      | App\Http\Controllers\Auth\PasswordController@sendResetLinkEmail | web,guest    |
  |        | POST     | password/reset          |      | App\Http\Controllers\Auth\PasswordController@reset              | web,guest    |
  |        | GET|HEAD | password/reset/{token?} |      | App\Http\Controllers\Auth\PasswordController@showResetForm      | web,guest    |
  |        | GET|HEAD | profile                 |      | App\Http\Controllers\UserController@getProfile                  | web,web,auth |
  |        | GET|HEAD | profile/edit            |      | App\Http\Controllers\UserController@editProfile                 | web,web,auth |
  |        | GET|HEAD | register                |      | App\Http\Controllers\Auth\AuthController@showRegistrationForm   | web,guest    |
  |        | POST     | register                |      | App\Http\Controllers\Auth\AuthController@register               | web,guest    |
  |        | POST     | update_email            |      | App\Http\Controllers\UserController@updateEmail                 | web,web,auth |
  |        | POST     | update_name             |      | App\Http\Controllers\UserController@updateName                  | web,web,auth |
  |        | POST     | update_password         |      | App\Http\Controllers\UserController@updatePassword              | web,web,auth |
  |        | POST     | update_profile_picture  |      | App\Http\Controllers\UserController@updateProfilePicture        | web,web,auth |
  +--------+----------+-------------------------+------+-----------------------------------------------------------------+--------------+
  </code></pre>