title: Form not submitted in laravel?
body: <p>I want to submit the form to usercontroller file and call function invitebyemail.</p>
  
  <p>When I click on submit it gives me error like "Whoops, looks like something went wrong."</p>
  
  <p>Below are the structure of my Files and code.</p>
  
  <p>Route File:</p>
  
  <pre><code>Route::POST('event/inviteforevent', 'UserController@invitebyemail');
  </code></pre>
  
  <p>Blade.php file</p>
  
  <pre><code>    &lt;form action="{{ route('inviteforevent') }}" method="POST"&gt;
      &lt;input type="email" class="form-control full-width" id="add-members-event-email" name="email" placeholder="Email address"&gt;
      &lt;input type="hidden" class="form-control full-width" name="eventid" value="{{ $event-&gt;id }}" &gt;
      &lt;input type="submit" name="invite" value="submit" /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>UserController File:</p>
  
  <pre><code>public function invitebyemail(Request $request){        
   $event = Event::find($request-&gt;eventid);
   $timelineId = $event-&gt;timeline_id;
   $username = Auth::user()-&gt;username;
   $timelines = Timeline::find($timelineId);
    return redirect()-&gt;back()-&gt;with('message', 'Invitation send to user by email.');
   }
  </code></pre>