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 19–24 of 41 posts · Page 4 of 7

Laravel 12 New Features: What's New in 2025 + Sample Code Examples

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Laravel 12, released on <b>February 24, 2025</b>, is a maintenance-focused release that updates upstream dependencies, requires PHP <b>8.2+</b>, and introduces exciting new application starter kits for modern frontend stacks. While it has minimal breaking changes, it brings quality-of-life improvements and paves the way for seamless upgrades from Laravel 11.<br /> This version emphasizes developer experience with better starter kits and supports for authentication via WorkOS AuthKit. Most applications can upgrade without code changes. Below are the key Laravel 12 new features with practical sample code.

By Revathi M · Read

How to Install Laravel 12: Complete Step-by-Step Guide for Beginners

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Laravel 12, released in February 2024, introduces a range of enhancements aimed at improving performance, developer experience, and modern PHP compatibility. Whether you're building APIs, web applications, or real-time apps, Laravel 12 continues to provide elegant solutions and developer-friendly tooling.

By Revathi M · Read

Generate Professional PDF Invoices in Laravel 11 with Dompdf

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Need to create downloadable PDF invoices in your Laravel 11 application? In this step-by-step guide, you'll learn how to generate professional invoices from HTML/Blade templates using the reliable <span class="highlight">barryvdh/laravel-dompdf</span> package. We'll cover installation, database setup for orders/items, controller logic, Blade styling (with header/footer), and triggering PDF downloads. This works great for e-commerce, billing systems, or admin panels.

By Revathi M · Read

Generate PDF from HTML in CodeIgniter 4 Using Dompdf

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In modern web applications built with <b>CodeIgniter 4</b>, generating PDFs for invoices, receipts, reports, or contracts is a common requirement. Dompdf is a popular, lightweight PHP library that converts HTML + CSS directly into PDF documents — no external dependencies needed beyond Composer.<br /> This step-by-step guide shows you how to integrate Dompdf in CodeIgniter 4 to create dynamic PDFs (using a real-world invoice example with order data from MySQL). By the end, you'll have a working PDF generator.

By Revathi M · Read

How to Generate vCard (.vcf) Files in Laravel 11 – Complete Tutorial

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In this comprehensive guide, you'll discover how to implement a powerful <strong>Laravel vCard generator</strong> to dynamically create and export professional vCard (.vcf) files from your Laravel 11 application. Whether you're building a CRM, employee directory, networking tool, or digital business card platform, generating vCards allows users to instantly share contact details with smartphones, email clients, and address books — no manual entry required. Follow our step-by-step tutorial to set up a complete contact management system with seamless vCard downloads using best-practice packages and clean, maintainable code. By the end, you'll have a fully functional feature ready to enhance user experience and streamline professional networking in 2025–2026.

By Revathi M · Read

How to Create Dynamic Charts with Filter Options in ApexCharts Using Laravel 11

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ApexCharts is a modern, free JavaScript charting library perfect for creating responsive, interactive visualizations (bar, line, area, pie, and more). In this Laravel 11 tutorial, you'll learn how to build <b>dynamic charts with filter options</b> — specifically, an AJAX-powered year selector that updates a monthly user registration bar chart without page reloads.<br> Great for admin dashboards, analytics pages, or reports!

By Revathi M · Read