All Tutorials & Sample Codes

Browse all our Laravel 12, CodeIgniter 4, and PHP tutorials. Each guide includes working source code, best practices, and step-by-step instructions.

Showing 49–54 of 79 posts · Page 9 of 14

CodeIgniter 4 JWT Authentication: Complete Tutorial for Secure API Login & Register

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Build a secure, token-based authentication system for your <b>CodeIgniter 4</b> REST API using <b>JWT (JSON Web Tokens)</b>. This stateless approach is ideal for mobile apps, SPAs, and microservices. We'll cover setup, user registration/login, token generation/validation, protected routes, and best practices.

By Revathi M · Read

Laravel 11 JWT Authentication Tutorial: Build a Secure RESTful API from Scratch

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JSON Web Tokens (JWT) provide a stateless, secure way to authenticate users in RESTful APIs. In this complete Laravel 11 JWT authentication tutorial, you'll learn to set up a production-ready API with user registration, login, token management, and protected endpoints using the reliable <span class="highlight">php-open-source-saver/jwt-auth</span> package (a maintained fork of the original tymon/jwt-auth).

By Revathi M · Read

Laravel 11: Load More Data on Page Scroll Using jQuery AJAX (Infinite Scroll Tutorial)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In today's web applications, infinite scrolling provides a smooth, engaging user experience — think Instagram or Twitter feeds. Instead of clicking "Next Page", content loads automatically as the user scrolls down.<br /> In this Laravel 11 tutorial, you'll learn how to implement <strong>load more data on scroll</strong> using jQuery and AJAX. We'll use Laravel's built-in pagination combined with an AJAX call to fetch additional records dynamically from the database.

By Revathi M · Read

CodeIgniter 4: Load More Data on Page Scroll with AJAX and jQuery (Infinite Scroll)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Infinite scrolling (also called endless scroll or lazy pagination) improves user experience by automatically loading more records as the user scrolls down — no "Next" buttons needed. In this tutorial, we'll build it in CodeIgniter 4 using jQuery AJAX to fetch paginated data from MySQL without page reloads.

By Revathi M · Read

Laravel 11 Sanctum REST API Authentication: Complete Tutorial with Example

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Welcome to this up-to-date guide on implementing secure <strong>Laravel 11 Sanctum REST API authentication</strong>. Whether you're building a mobile app backend, a single-page application (SPA), or a simple token-based API, Laravel Sanctum remains the go-to lightweight solution in 2026. This step-by-step tutorial covers everything from installation using the modern <code>php artisan install:api</code> command to registration, login, protected routes, token management, and a full CRUD example. By the end, you'll have a production-ready authenticated API ready for testing in Postman or your frontend.

By Revathi M · Read

Server-Side DataTables in CodeIgniter 4: Complete AJAX Tutorial

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>Server-side processing</b> with <b>DataTables</b> is essential when dealing with large datasets in web applications. Instead of loading thousands of rows at once (client-side), DataTables sends AJAX requests to the server for each page, search, or sort — dramatically improving performance.

By Revathi M · Read