Fatal error: Class 'App\Http\Controllers\Input' not found when sending a form
<p>I'm trying to send an email filled with a form from a Laravel app.</p>

<p>When you hit submit it throws the above error:</p>

<blockquote>
  <p>Fatal error: Class 'App\Http\Controllers\Input' not found</p>
</blockquote>

<p>Not sure why as I don't have, nor knew I needed to have an Input controller, or what I would put in it. </p>

<p>Below is the content of the controller:</p>

<pre><code>&lt;?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;

class contact extends Controller
{
     // This function will show the view
    public function showForm()
    {
        return view('pages.contact');
    }

     public function handleFormPost()
     {
         $input = Input::only('name', 'email', 'msg');

         $validator = Validator::make($input,
             array(
                 'name' =&gt; 'required',
                 'email' =&gt; 'required|email',
                 'msg' =&gt; 'required',
             )
         );

         if ($validator-&gt;fails())
         {
             return Redirect::to('contact')-&gt;with('errors', $validator-&gt;messages());
         } else { // the validation has not failed, it has passed


            // Send the email with the contactemail view, the user input
            Mail::send('contactemail', $input, function($message)
            {
                 $message-&gt;from('idocompscihw@gmail.com', 'Your Name');

                 $message-&gt;to('idocompscihw@gmail.com');
             });

             // Specify a route to go to after the message is sent to provide the user feedback
             return Redirect::to('thanks');
         }

     }
 }
</code></pre>

<p>Below is the view of the forum (based on bootstrap):</p>

<pre><code>&lt;div class="container"&gt;
    &lt;h1&gt;A basic contact form&lt;/h1&gt;
    &lt;form id="contact" method="post" class="form" role="form"&gt;

        @if(Session::has('errors'))
            &lt;div class="alert alert-warning"&gt;
                @foreach(Session::get('errors')-&gt;all() as $error_message)
                    &lt;p&gt;{{ $error_message }}&lt;/p&gt;
                @endforeach
            &lt;/div&gt;
        @endif

        &lt;div class="row"&gt;
            &lt;div class="col-xs-6 col-md-6 form-group"&gt;
                &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
                &lt;input class="form-control" id="name" name="name" placeholder="Name" type="text"autofocus=""&gt;
            &lt;/div&gt;
            &lt;div class="col-xs-6 col-md-6 form-group"&gt;
                &lt;input class="form-control" id="email" name="email" placeholder="Email" type="text"&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;textarea class="form-control" id="message" name="msg" placeholder="Message" rows="5"&gt;&lt;/textarea&gt;
        &lt;br&gt;
        &lt;div class="row"&gt;
            &lt;div class="col-xs-12 col-md-12 form-group"&gt;
                &lt;button class="btn btn-primary pull-right" type="submit"&gt;Submit&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>