All Laravel, PHP & CodeIgniter Tutorials

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

Showing 31–36 of 87 posts · Page 6 of 15

How to Use Redis Cache in CodeIgniter 4: A Complete Guide with Code Examples

Caching is a crucial technique for improving the performance of web applications by storing frequently accessed data in a fast-access storage layer. In CodeIgniter 4, the framework provides built-in support for multiple caching drivers, including Redis — an in-memory data structure store known for its speed and versatility. Redis can act as a cache, database, or message broker, making it ideal for high-traffic applications. This step-by-step tutorial covers Redis installation, CI4 configuration with both phpredis and Predis, practical controller examples, cache invalidation strategies, and performance best practices.

By Revathi M · Read

How to Install Vue.js in Laravel 12: Step-by-Step Guide with Code Examples

Laravel 12 ships with a modern frontend toolchain powered by Vite, making it easier than ever to integrate JavaScript frameworks like Vue.js. Whether you're building a dashboard, SPA components, or interactive UI blocks, Vue fits naturally into Laravel's ecosystem. In this step-by-step tutorial, you will learn how to install Vue 3, configure Vite, create your first component, and run the application.

By Revathi M · Read

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

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.

By Revathi M · Read