title: making a page and getting error: MethodNotAllowedHttpException in RouteCollection.php line 218
body: <p>I am making a signup page and continuously I am getting this </p>
  
  <pre><code>MethodNotAllowedHttpException in RouteCollection.php line 218:
  </code></pre>
  
  <p>when I try to submit data.
  what it should do, is to just submit it to the database. but it's not doing it. </p>
  
  <p>welcome blade:</p>
  
  <pre><code>@extends('layouts.master')
  @section('title')
  Welcome!!
  @endsection
  @section('content')
  &lt;div class="row"&gt;
      &lt;div class="col-md-6"&gt;
          &lt;h2&gt;Sign Up&lt;/h2&gt;
          &lt;form action="{{route('signup')}}" method="post"&gt;
              &lt;div class="form-group"&gt;
                  &lt;label for="email"&gt;Your E-Mail&lt;/label&gt;
                  &lt;input class="form-control" type="text" name="email" id="email"&gt;
              &lt;/div&gt;  
              &lt;div class="form-group"&gt;
                  &lt;label for="name"&gt;Name&lt;/label&gt;
                  &lt;input class="form-control" type="text" name="name" id="name"&gt;
              &lt;/div&gt;  
              &lt;div class="form-group"&gt;
                  &lt;label for="password"&gt;Password&lt;/label&gt;
                  &lt;input class="form-control" type="password" name="password" id="password"&gt;
              &lt;/div&gt;
              &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
              &lt;input type="hidden" name="_token" value="{{Session::token()}}"&gt;                
          &lt;/form&gt; 
      &lt;/div&gt;
  
      &lt;div class="col-md-6"&gt;
          &lt;h2&gt;Sign In&lt;/h2&gt;
          &lt;form action="#" method="post"&gt;
              &lt;div class="form-group"&gt;
                  &lt;label for="email"&gt;Your E-Mail&lt;/label&gt;
                  &lt;input class="form-control" type="text" name="email" id="email"&gt;
              &lt;/div&gt;  
              &lt;div class="form-group"&gt;
                  &lt;label for="password"&gt;Password&lt;/label&gt;
                  &lt;input class="form-control" type="password" name="password" id="password"&gt;
              &lt;/div&gt;
              &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;                   
          &lt;/form&gt; 
      &lt;/div&gt;
  &lt;/div&gt;
  @endsection
  </code></pre>
  
  <p>User controller:</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)
  {
      $email = $request['email'];
      $name = $request['name'];
      $password = bcrypt($request['password']);
  
      $user = new User();
      $user -&gt; email = $email;
      $user -&gt; name = $name;
      $user -&gt; password = $password;
  
      $user-&gt;save();
  
      return redirect()-&gt;back();
  }
  </code></pre>
  
  <p>routes.php:</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web']], function(){
  
  Route::get('/', function () {
  return view('welcome');
  </code></pre>
  
  <p>});</p>
  
  <pre><code>Route::post('/signup',[
      'uses' =&gt; 'UserController@postSignUp',
      'as' =&gt; 'signup'
  ]);
  </code></pre>
  
  <p>});</p>
  
  <p>Header blade:</p>
  
  <pre><code>&lt;header&gt;
  &lt;nav class="navbar navbar-default"&gt;
  &lt;div class="container-fluid"&gt;
    &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
    &lt;div class="navbar-header"&gt;
      &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-bsexample-navbar-collapse-1" aria-expanded="false"&gt;
        &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;a class="navbar-brand" href="#"&gt;&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>master blade:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;@yield('title')&lt;/title&gt;
  &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt; 
  
  &lt;/head&gt;
  &lt;body&gt;
  @include('includes.header')
  &lt;div class="container"&gt;
  &lt;div&gt;
  @yield('content')
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>