diff --git a/resources/js/Layouts/AppLayout.vue b/resources/js/Layouts/AppLayout.vue
index 8c2ef66..8616bed 100644
--- a/resources/js/Layouts/AppLayout.vue
+++ b/resources/js/Layouts/AppLayout.vue
@@ -28,9 +28,7 @@
{{
trans("Logout")
}}
-
+
@@ -47,9 +45,7 @@ export default {
},
data() {
- return {
- csrf: document.querySelector('meta[name="csrf-token"]').getAttribute('content')
- };
+ return {};
},
computed: {
@@ -110,8 +106,7 @@ export default {
},
logout() {
- event.preventDefault()
- document.getElementById('logout-form').submit()
+ this.$inertia.post(this.route("logout"));
},
},
};