Laravel delete entry with destroy method
<p>I have got a form with a delete button which I see on the console that it's sending a delete request.</p>

<pre><code>jquery.js:4 DELETE http://laravel.com/painel/player/53 500 (Internal Server Error)
</code></pre>

<p>and my route is:</p>

<pre><code>Route::resource('painel/player','PlayerController');


| DELETE    | painel/player/{player}      | painel.player.destroy | App\Http\Controllers\PlayerController@destroy    |
</code></pre>

<p>and my method destroy is as below:</p>

<pre><code>    public function destroy($id)
    {
            $player = Player::where('id_player', '=', $id)-&gt;first();
            $player-&gt;delete();
            $player = array(
                    'users'         =&gt; Player::all(),
                    'refresh'       =&gt; true
            );
            return View::make('painel.player.show', $player);
    }
</code></pre>

<p>EDIT:
I forgot to mention the ajax:</p>

<pre><code>    $( document ).on('click', '.solsoConfirm', function(){
        $("#solsoDeletForm").prop('action', $(this).attr('data-href'));
    });

    $( document ).on('click', '.solsoDelete', function(e){
        e.preventDefault();

        var solsoSelector   = $(this);
        var solsoFormAction = $('#solsoDeletForm').attr('action');

        $.ajax({
            url:    solsoFormAction,
            type:   'delete',
            cache:  false,
            dataType: 'html',
            success:function(data) {
                $('#solsoDeleteModal').modal('hide');
                $('#ajaxTable').html(data);
                $('#countClients').text( $('.solsoTable').attr('data-all') );
                $.growl.notice({ title: solsoSelector.attr('data-message-title'), message: solsoSelector.attr('data-message-success') });
                $('.solsoTable').dataTable();
            }
        }); 

        return false;
    });     
</code></pre>