title: How to fix Laravel HttpKernel\Exception error
body: <p>I'm new to Laravel. I'm attempting a simple Ajax request however I get the following error message. What does this mean?</p>
  
  <blockquote>
    <p>{message: "", exception:
    "Symfony\Component\HttpKernel\Exception\HttpException",…} exception:
    "Symfony\Component\HttpKernel\Exception\HttpException" file:
    "C:\MAMP\htdocs\project_21_my_laravel_website\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php"
    line: 204 message: ""</p>
  </blockquote>
  
  <p><strong>index.blade.php</strong></p>
  
  <pre><code>&lt;div class="myTestLink"&gt;my Test Link&lt;/div&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){
      $(".myTestLink").click(function(){
          $.ajax({
              method: 'post',
              dataType: 'json',
              url: 'insert-ajax',
              success: function (data)
              {
                  alert(data);
              }
          });
  
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>web.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>Route::post('/insert-ajax', 'myTestController@testingsomething');
  </code></pre>
  
  <p><strong>myTestController.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  class myTestController extends Controller
  {
      public function testingsomething()
      {
          return "hello";
      }
  }
  </code></pre>