Laravel Resource destroy via ajax
<p>Can I use resource via ajax? I have this resource</p>

<p><code>Route::resource('dashboard', 'DashBoardController');</code></p>

<p><strong>js file</strong></p>

<pre><code>$.ajax({
    type: 'delete',
    dataType: 'json',
    data: {id:id},
    url: " {!! route('dashboard.destroy') !!} ",
    success: function (data) {
             //
             } 
});
</code></pre>

<p>but I receive, </p>

<blockquote>
  <p>NotFoundHttpException in RouteCollection.php line 161:</p>
</blockquote>