Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

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="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Your script -->
<script>
$(document).ready(function() {
$("#kt_datatable_zero_configuration").DataTable();
});
</script>


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (8)


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.



Are we able to get proper documentation for this?



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 https://yajrabox.com/docs/laravel-datatables/10.0/quick-starter#setup-users-datatable
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



Could you please tell me the template, version, and demo you're using?

https://devs.keenthemes.com/question/laravel-examples geometry dash



Could you share which template, version, and demo version you're currently utilizing?

https://devs.keenthemes.com/question/laravel-examples
papa’s freezeria



You can directly include the DataTable library files (JavaScript and CSS) in your Blade templates.
Leverage Laravel's asset helpers (asset()) to reference the library files.

https://preview.keenthemes.com/laravel/metronic/docs/indexHigh Performance Computational Infrastructures



I can't thank you enough for sharing these incredible tips for mastering Holmes exams! Your blog post couldn't have come at a more opportune moment for me. With exams looming on the horizon, I've been searching for ways to enhance my preparation and boost my confidence. Your tips offer a roadmap for success, guiding me through the intricacies of Holmes exams with clarity and precision. What I appreciate most is the practical nature of your advice – it's not just theoretical but grounded in real-world application. I've already begun implementing your strategies, and I can feel a significant difference in my approach. Here's Top 10 Tips to Score High in Holmes!



Hey there! Mind telling me what template, version, and demo version you're using right now? https://devs.keenthemes.com/question/laravel-examples red ball


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(