title: Laravel NotFoundHttpException in RouteCollection.php line 161:
body: <p>I'm having a hard time on this error when I encounter this error, My solution is to create new project. I know this question is alway ask here. I followed all tutorial line by line and is always error.</p>
  
  <p><strong>Sign Up:</strong></p>
  
  <pre><code> @extends('layouts.master')
   @section('content')
    &lt;div class="col-md-6"&gt;
      &lt;form method="POST" action="{{ route('signup') }}"&gt;
          &lt;div class="form-group"&gt;
              &lt;input type="text" name="username" placeholder="Username" class="form-control"&gt;&lt;/input&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;input type="password" name="password" placeholder="Password" class="form-control"&gt;&lt;/input&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;input type="submit" value="Submit" class="btn btn-primary pull-right"&gt;&lt;/input&gt;
              &lt;input type="hidden" name="_token" value="{{ Session::token() }}"&gt;&lt;/input&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  @endsection
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code> &lt;?php
  
   Route::get('/', function () {
      return view('welcome');
  });
  
  Route::post('/signup', [
      'uses' =&gt; 'UserController@postSignUp',
      'as' =&gt; 'signup'
  ]);
  </code></pre>
  
  <p><strong>UserController</strong></p>
  
  <pre><code> &lt;?php
  
   namespace App\Http\Controllers;
   use Illuminate\Http\Request;
   use App\Http\Requests;
   use App\User;
  
   class UserController extends Controller
   {
   public function postSignUp(Request $request){
  
      $username = $request['username'];
      $password = bcrypt($request['password']);
  
      $user = new User();
      $user-&gt;username = $username;
      $user-&gt;password = $password;
      $user-&gt;save();
  
      return redirect()-&gt;back();
    }
  }
  </code></pre>