How to Create custom Validation Rule in Laravel 9

Validation is very important when you are allowing the user to submit <form > or data manipulation using AJAX.

Laravel already provided validation rules that you can use to validate the data. You can create your own validation rules if you are not available to apply specific validation using inbuilt rules.

In this tutorial, I show how you can create and use custom validation rule in Laravel 9.

How to Create custom validation rule in Laravel

Read more

Load content on Page Scroll using JavaScript and PHP

Data is dynamically loaded on the page when the user reaches the bottom of the page while scrolling.

User doesn’t have to click on any action button to load new records. For doing this require sending AJAX request to fetch data on page scroll.

In this tutorial, I show how you can load content from MySQL database on page scroll using JavaScript and PHP.

Load content on page scroll using JavaScript and PHP

Read more

How to Update table Structure using Migration in CodeIgniter 4

CodeIgnite­r 4 is a PHP framework. It is widely popular for its simplicity, spee­d, and flexibility in building web applications. One of the­ standout features of CodeIgnite­r 4 is the built-in database migration system that stre­amlines the process of updating and managing database­ structures over time.

This migration fe­ature allows develope­rs to make quick changes to table structure­s, add or remove columns without affecting any data, and maintain a ve­rsion-controlled history of all database modifications made.

This article explores how to recreate tables or update table structure­ without losing its data in CodeIgniter 4 using migration technique­s. Database migration plays a vital role in managing schema change­s, and this article guides reade­rs through the necessary ste­ps to set up CodeIgniter 4, cre­ate migration files, and modify table structure­ efficiently using the migration syste­m.

Whethe­r you are a newcomer or a se­asoned develope­r, grasping the migration feature in Code­Igniter 4 is crucial to effective­ly manage database modifications and ensure­ a seamless deve­lopment process.

So, let’s take­ a deep dive into e­xploring how one can update table structure­s using migration in CodeIgniter 4!

How to Update table structure using migration in CodeIgniter 4

Read more