Laravel: Connect to different databases based on routes
Introduction Working with a single database is a common scenario for most web applications. However, as applications grow in complexity or need to handle different types of data…
How to Generate QR Codes in Laravel (the right way)
Instroduction In modern web development, QR codes serve as a bridge between the online and offline worlds, allowing users to access web content by simply scanning a code…
How to Create and Display a QR Code in Symfony
Introduction In this tutorial, we will explore the process of creating and displaying a QR code in a Symfony project. Whether you’re building a web application that generates…
How to parse/decode QR codes in PHP
Overview Quick Response (QR) codes are two-dimensional barcodes that can store information like text, URLs, or other data, readable by devices. They are widely used for their simplicity…
PHP: Rendering JSON data in a HTML table
Introduction Ever needed to display JSON data within a web page? This tutorial covers how you can render JSON data into an HTML table using PHP, empowering you…
PHP: How to Extract all Headings from HTML Source (2 Ways)
Overview Extracting headings from HTML source code can be an essential task for various purposes such as content analysis, SEO optimization, and creating content summaries. PHP, with its…
Laravel + Eloquent: Design a Simple URL Shortening Service
Getting Started URL shortening services have become an essential tool in the age of social media and online marketing. They simplify long URLs, making them easier to share…
Laravel + Blade: How to Create a “Table of Contents”
Introduction Creating a Table of Contents (TOC) in any document or web page aids in navigating through the content effectively. For web applications built on Laravel with Blade…
Laravel + Eloquent: How to Build a Rating System
Introduction This tutorial shows how to build a robust rating system within a Laravel application using Eloquent ORM. A rating system is an essential feature for many web…
Laravel + Eloquent: Storing comments and nested comments
Introduction When building a web application that requires user interaction, such as a blog or a forum, incorporating a commenting system is a common need. With Laravel, an…