title: JSON_ENCODE LARAVEL No Work
body: <p>Do not return my json_encode page after I access the button. I do not know why.
  SkinID data is saved correctly. Only the return does not work.</p>
  
  <pre><code>public function buy()
  {
      $player = \Auth::user();
      $player-&gt;SkinID = $_POST['id'];
      $player-&gt;save();
      return json_encode(['type' =&gt; 'success','title' =&gt; 'TEST BOX','text' =&gt; 'TEST MESSAGE LARAVEL!']);
  }
  </code></pre>
  
  <p>app.min.js:</p>
  
  <pre><code>$("._buy").click(function() {
      var o = $(this).attr("id");
      $.ajax({
          url: _PAGE_URL + "api/buy",
          type: "POST",
          data: {
              id: o
          }
      })
  })
  </code></pre>