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 31–36 of 79 posts · Page 6 of 14

Laravel 12 WebSockets Without Node.js: Complete Guide with Laravel Reverb

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Real-time applications (like <b>chat apps, live notifications, dashboards</b>) usually require <b>WebSockets</b>. Traditionally, this is done with <b>Node.js + Socket.IO</b>, but in Laravel 12 we can build WebSocket-powered apps <b>without Node.js</b> using the <b>BeyondCode Laravel WebSockets package</b>.

By Revathi M · Read

How to Import CSV Files in Laravel 12 with Upsert – Complete 2025 Tutorial

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Importing data from CSV files is a common requirement in modern web applications — whether you're syncing users, products, contacts, or inventory records. In Laravel 12 (and earlier versions), the most efficient way to insert new records or update existing ones in bulk is by using the built-in upsert() method.

By Revathi M · Read

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