How to Prefetch data on Mouseover in Livewire – Laravel 9

In Livewire you can prefetch the data from the database before the user click on the HTML element. Data will show instantly on click if it is already loaded.

For this, you have to add prefetch modifier to the event.

In this tutorial, I show how you can preload content when the mouse over on an element in the Livewire component in Laravel 9 project.

How to Prefetch data on mouseover in Livewire - Laravel

Read more

How to Upload and Save file to MySQL Database in CakePHP 4

Storing file upload details in the database provide more flexibility and control over file handling and management. You can easily keep track of who uploaded this file and when.

In this tutorial, I show how you can upload file with validation and save it to the MySQL database in CakePHP 4 project.

Also, show how you can display stored files on the page.

How to Upload and save file to MySQL database in CakePHP 4

Read more

How to Upload file and Display preview in CakePHP 4

File uploads are a common feature in web applications. It allows users to upload and share files, such as images, videos, and documents.

CakePHP 4 already has built-in File handling classes to handle file uploads.

In this tutorial, I show how you can upload file with validation and display its preview after upload in CakePHP 4.

In the example, I am using the Modelless form for creating an upload form.

How to upload file and display preview in CakePHP 4

Read more

How to Add Toggle button in DataTables with jQuery PHP

Adding pagination on the page becomes easier with the DataTables plugin. It is equipped with essential features such as searching, sorting, and customizable rows per page.

Elevate user interaction by seamlessly integrating action buttons into the list, for these need to update the AJAX script.

In this tutorial, I show how you can add a toggle button to change user status in DataTable AJAX pagination with PHP.

How to Add Toggle button in Datatables with jQuery PHP

Read more