title: Laravel 5.4 form post and save() don't work
body: <p>I have problem with submitting data into database. Database works fine, as I can seed data into it and display data from it. I am suspecting that there is something wrong with post form, as I don't get any errors, it is like post doesn't reach controller at all. Here are the files: </p>
  
  <p>view: </p>
  
  <pre><code>@extends('layouts.master')
  
  @section('title') Homepage @endsection
  
  @section('content')
      &lt;h1&gt;Homepage:&lt;/h1&gt;
      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad architecto aut consectetur debitis deleniti dolore ducimus, eaque ex, harum itaque laudantium nobis odit, officiis quae rem saepe sunt unde veritatis!&lt;/p&gt;
  
  
  
  
      &lt;div style=" width: 100%; text-align: center; display: inline-block;"&gt;
  
          @foreach($actions as $action)
              &lt;a href="{{route('niceaction',['action'=&gt;lcfirst($action-&gt;name)])}}"&gt;&lt;h3&gt;{{ $action-&gt;name }}&lt;/h3&gt;&lt;/a&gt;
              &lt;br&gt;
          @endforeach
  
      &lt;/div&gt;
  
      &lt;div&gt;
      &lt;form action=" {{ route ('add_action') }}" method ="post"&gt;
          &lt;label for="name"&gt;Enter name:&lt;/label&gt;
          &lt;input type="text" name="name" id="name"/&gt;
          &lt;label for="niceness"&gt;Niceness level:&lt;/label&gt;
          &lt;input type="text" name="niceness" id="niceness"/&gt;
          &lt;button type="submit" &gt;Do a nice action!&lt;/button&gt;
         &lt;input type="hidden" value="{{csrf_token()}}" name="_token"/&gt;
      &lt;/form&gt;
  
  
      &lt;/div&gt;
  @endsection
  </code></pre>
  
  <p>route: </p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Http\Request;
  
  /*
  |--------------------------------------------------------------------------
  | Web Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register web routes for your application. These
  | routes are loaded by the RouteServiceProvider within a group which
  | contains the "web" middleware group. Now create something great!
  |
  */
  
  Route::group(['middleware' =&gt; ['web']], function() {
  
      Route::get('/', [
          'uses' =&gt; 'NiceActionController@getHome',
          'as' =&gt; 'home'
      ]);
  
  
      Route::group(['prefix'=&gt; 'do'], function(){
  
          Route::get('/{action}/{name?}', [
              'uses' =&gt; 'NiceActionController@getNiceAction',
              'as' =&gt; 'niceaction'
          ]);
  
  
  
          Route::post('/add_action', [
              'uses' =&gt; 'NiceActionController@postInsertNiceAction',
              'as' =&gt; 'add_action'
          ]);
  
      });
  
  });
  </code></pre>
  
  <p>and controller: </p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  use App\NiceAction;
  
  class NiceActionController extends Controller {
  
      public function getHome() {
          $actions = NiceAction::all();
          return view ('home', ['actions' =&gt; $actions]);
      }
  
      public function getNiceAction ($action, $name = null) {
  
          if ($name === null ) {
              $name = 'you';
          }
          return view ('actions.nice', [
              'action' =&gt; $action,
              'name'=&gt; $name
              ]);
      }
  
      public function postInsertNiceAction (Request $request) {
  
  
          $this-&gt;validate($request, [
              'action' =&gt; 'required',
              'name' =&gt; 'required|alpha',
              'niceness' =&gt; 'required|numeric'
          ]);
  
  
          $action = new NiceAction();
          $action-&gt;name = $request['name'];
          $action-&gt;niceness = $request['niceness'];
          $action-&gt;save();
  
          $actions = NiceAction::all();
          return view ('home', ['actions' =&gt; $actions]);
  
      }
  
      private function transformName($name){
          $prefix = 'KING ';
          return $prefix.strtoupper($name);
      }
  }
  </code></pre>