Metronic Tailwind Inertia
Hello
How can I use Metronic Tailwind, on Laravel Inertia Js
Replies (3)
Hi,
Thank you for reaching out to us.
At the moment, we haven't tried using Metronic in combination with Inertia, we will check it and consider using Inertia in a future release if we see demand.
You can start the Vue app using our metronic-tailwind-vue example app.
Then, use this tutorial for Inertia integration.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hello
Use metronic-tailwind-vue is not solution and will not work. No one ca give suggestion how I can make interaction.
For ex. I do this it will be correct:
- metronic-tailwind-html\dist\assets copy all files laravel-project\public folder
- This is how look inertia app blade <code>
<!-- Scripts -->
@routes
@vite(['resources/js/app.js', "resources/js/Pages/{$page['component']}.vue"])
@inertiaHead
</head>
<body class="font-sans antialiased">
@inertia
</body>
</html>
</code>
I can add bottom <code>
<!-- Scripts --> <script src="assets/js/core.bundle.js"> </script> <script src="assets/vendors/apexcharts/apexcharts.min.js"> </script> <script src="assets/js/widgets/general.js"> </script> <script src="assets/js/layouts/demo1.js"> </script> <!-- End of Scripts -- </code> and i head <code> <link href="assets/vendors/apexcharts/apexcharts.css" rel="stylesheet"/> <link href="assets/vendors/keenicons/styles.bundle.css" rel="stylesheet"/> <link href="assets/css/styles.css" rel="stylesheet"/> </code> But in Layouts AuthenticatedLayout I need init metronic ? for ex this is correct? <code> onMounted(() => { KTComponents.init(); KTThemeMode.init(); }); </code>Hi,
Your solution looks fine, do you have any errors or problems using it?
Regards,
Lauris Stepanovs,
Keenthemes Support Team