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 25–30 of 79 posts · Page 5 of 14

How to Implement MFA/2FA in CodeIgniter 4 with Google Authenticator

Security is no longer optional for modern web applications. Password-only authentication is vulnerable to phishing, credential stuffing, and brute-force attacks. This is why Multi-Factor Authentication (MFA)—also known as Two-Factor Authentication (2FA)—has become a standard security requirement. In this step-by-step tutorial, you will learn how to implement MFA/2FA in CodeIgniter 4 using Google Authenticator with complete working code examples.

By Revathi M · Read

Getting Started with Laravel 12's New React Starter Kit – Full Setup with Authentication

Learn how to set up Laravel 12's React Starter Kit with Inertia.js, TypeScript, Tailwind CSS, and shadcn/ui. This step-by-step guide covers full project installation, authentication configuration with Laravel Fortify (including 2FA and email verification), React frontend pages, routing, and testing — everything you need to build a modern full-stack app from scratch.

By Revathi M · Read

CodeIgniter 4 Filters: A Complete Guide with Examples

Learn how to use filters in CodeIgniter 4 with this step-by-step guide. This tutorial covers before and after filters, authentication filter example, route-specific configuration, role-based access control, and best practices for building secure PHP applications using CI4 filters.

By Revathi M · Read

Implementing Multi-Factor Authentication (MFA/2FA) in Laravel 12 with Google Authenticator

<p>In today's digital landscape, securing user accounts is paramount. With cyber threats on the rise, relying solely on passwords is no longer sufficient. Multi-Factor Authentication (MFA), also known as Two-Factor Authentication (2FA), adds an extra layer of security by requiring a second verification method, such as a time-based one-time password (TOTP) from an app like Google Authenticator. In this step-by-step tutorial, you will learn how to implement MFA/2FA in a Laravel 12 application using the PragmaRX Google2FA package, complete with QR code setup, TOTP verification, recovery codes, and middleware protection.</p>

By Revathi M · Read

Install Bootstrap 5 in Laravel 12 with Vite (Step-by-Step)

Laravel 12 introduces a smoother and faster way to integrate Bootstrap using the official bootstrap-vite package. Instead of manually importing Bootstrap files and configuring Popper.js, Laravel's dedicated package handles everything automatically — from SCSS compilation to JavaScript module bundling with Vite. In this step-by-step guide, you'll learn how to set up Bootstrap 5 in minutes with zero manual configuration.

By Revathi M · Read

WhatsApp Cloud API Integration in Laravel 12: Complete Step-by-Step Guide

Learn how to integrate WhatsApp Cloud API with Laravel 12 in this hands-on tutorial. Build a reusable service class, send text and template messages, handle webhooks securely with HMAC verification, upload and send media, and follow production best practices — all using Laravel's native HTTP client with no third-party packages.

By Revathi M · Read