Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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 to open the laravel app.


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!



Hello,

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

Thanks!


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(