Delete button on log tables in metronic 8 demo 1 laravel version

Hi there,

I have set up demo 1 on my localhost. I'm using the laravel version of metronic 8.

The delete button on the log tables does not do anything.

I notice this question was asked a couple of days ago however when I click on the answer button I get a 404 error.

Please advise how to fix this.

Thanks and have a great day

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)

Hello,

Could I please get a response to this query? I can provide my purchase code.

Thanks!

So my page is missing this java script:

$.ajaxSetup({headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}});
LaravelDataTables["audit-log-table"].on('click', '[data-destroy]', function (e) {
e.preventDefault();
if (!confirm("Are you sure to delete this record?")) {
return;
}
axios.delete($(this).data('destroy'), {
'_method': 'DELETE',
})
.then(function (response) {
LaravelDataTables["audit-log-table"].ajax.reload();
})
.catch(function (error) {
console.log(error);
});


However, you have this on your page at https://preview.keenthemes.com/metronic8/laravel/log/audit?demo=demo1

Please advise on how to fix....

Thanks!

Hi Alex,

We got your support request via email. Could you please try to use "php artisan serve" command to start the localhost? then go to http://127.0.0.1:8000/ to open the laravel app.


Thanks

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(