Laravel Examples
Can we get some actual examples of setting up a DataTable, Quill, and maybe a few other assets using Laravel? It'd be nice to have something to reference. For example, in-order for me to get DataTables working I needed to import jquery (code below). This seems incorrect, but I have nothing to compare this to. The Laravel documentation feels kind of lacking.
<script src="
<!-- Your script -->
<script>
$(document).ready(function() {
$("#kt_datatable_zero_configuration").DataTable();
});
</script> Replies (4)
Hi,
Metronic Laravel have already including all the necessary JavaScript libraries, including jQuery and DataTables. Our Metronic Laravel package use Yajra DataTables, which is a popular DataTables package for Laravel.
Regarding your concern about importing jQuery explicitly, that it's part of the dependencies that come bundled with Metronic Laravel, so you don't need to import it separately.
For a quick start with Yajra DataTables in Metronic Laravel, you can refer to the official documentation at
The documentation provides clear examples and instructions on how to set up DataTables for your Laravel project.
If you have any further questions or need assistance with other assets, feel free to ask!
Thanks
Hi,
May I know which template, version, and demo using ?
Our Metronic has ready to use Laravel Starter Kit. For more info please check the Laravel Starter Kit Docs.
Regards.