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

Laravel StarterKit logout error.


Hello,
I have tried to logout in my laravel starterkit fresh install and can't do this action.
Also tried on keenthemes demo and again this error.
That button not working.

Here image that indicate button not working.



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  :(

Replies (5)


Hi John,

You can download the latest version of Laravel from our website at https://devs.keenthemes.com/metronic/laravel. We have included the necessary fix in this version.


Thanks


Hi John,

I apologize for the inconvenience, but it seems like there are still some missing features that we need to update. In the meantime, here is a workaround that you can try:

  1. Copy the contents of the file from this URL: https://gist.github.com/KeenthemesHub/b763755828ad294b9db9a3cc2d7f206a

  2. Create a new file in the directory "starterkit/resources/mix/common/" and name it "button-ajax.js".

  3. Edit the file "starterkit/resources/mix/scripts.js" and add the file path for "button-ajax.js" to the array. It should look like this:

module.exports = [
 ...componentJs,
 ...coreLayoutJs,
 'resources/mix/common/button-ajax.js'
];
  1. Rebuild the assets using the command "npm run dev".

I hope this helps. Let us know if you have any further questions or issues.

Thanks


Hi,
I have tried your solution, but now only refresh page and not log out.
We can find this update already for download or need to wait until next update?

Thanks!



Hi,

We apologize for the inconvenience caused. It seems to be a bug and we are currently working on a fix for it. In the meantime, please try the following workaround by replacing the existing button.


<a class="button-ajax menu-link px-5" href="#" data-action="{{ route("logout") }}" data-method="post" data-csrf="{{ csrf_token() }}" data-reload="true">
{{ __("Sign Out") }}
</a>


resources/views/partials/menus/_user-account-menu.blade.php

Thanks



Hi,

It's not working.
Redirect me to "#", and not logout.


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  :(