title: Laravel: Maximum execution time of 30 seconds exceeded
body: <p>I'm currently trying to do something in PHP but what is stopping me is the error message stating that the max execution time is 30 seconds and it has been exceeded. Whilst this is true, I don't understand why it is happening, maybe someone could help me figure out why? </p>
  
  <p>I use Laravel framework, and this only started happening when coding forgot password functionality, here is the code I currently use for it.</p>
  
  <p>When posting a form on the view, it runs this method, which is where the crash happens.</p>
  
  <pre><code>public function onPost(Request $request)
  {
      $validator = Validator::make($request-&gt;all(), [
          'email' =&gt; 'required|exists:habbo_users,mail',
      ]);
  
      if ($validator-&gt;fails()) {
          return Redirect::back()-&gt;withErrors($validator)-&gt;withInput();
      }
      else {
          Mail::to($request-&gt;input('email'))-&gt;send(new ForgotPassword(User::where('mail', $request-&gt;input('email'))-&gt;first()));
          return Redirect::back()-&gt;with('message', 'We\'ve sent a reset link to your email, click the link included to reset your password.');
      }
  }
  </code></pre>
  
  <p>Screenshot of the error: <a href="https://i.imgur.com/zyv6Icn.png" rel="nofollow noreferrer">https://i.imgur.com/zyv6Icn.png</a></p>