Laravel + Eloquent: Design a Simple URL Shortening Service
Updated: Jan 28, 2024
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 and manage. In this tutorial, we’ll learn how to build a......
Laravel + Blade: How to Create a “Table of Contents”
Updated: Jan 26, 2024
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 templating, generating a TOC dynamically can greatly......
Laravel + Eloquent: How to Build a Rating System
Updated: Jan 26, 2024
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 applications to collect user feedback. Laravel, a prominent PHP......
Laravel + Eloquent: Storing comments and nested comments
Updated: Jan 25, 2024
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 MVC framework and Eloquent ORM, creating and managing......
Laravel + Eloquent: Store categories and subcategories in the same table
Updated: Jan 25, 2024
Introduction It’s common to encounter scenarios where items are organized in categories which themselves can have subcategories, forming a tree-like structure. In a traditional database, you might consider using two tables: one......
PHP: Inserting Custom Content After N-th Paragraph
Updated: Jan 25, 2024
Introduction When working with CMS platforms like WordPress or managing content-heavy websites, there may come a time where you need to dynamically insert custom content after a specific paragraph. This is a common requirement for......
Eloquent: How to auto-delete old records after N days
Updated: Jan 25, 2024
Introduction When developing applications, it’s a common requirement to maintain a clean database by automatically removing old records. In this tutorial, we’ll explore how to set up an automatic deletion mechanism for......
Inner Join in Laravel Query Builder: Tutorial & Examples
Updated: Jan 23, 2024
Introduction Laravel, known for its elegant syntax and feature-packed libraries, offers developers a fluent interface for database queries. Laravel Query Builder allows for intuitive and flexible interactions with the database with the......
Eloquent: Delete multiple records with an array of IDs
Updated: Jan 22, 2024
Introduction When working with databases in a Laravel project, Eloquent makes it easier to interact with your database by providing a robust set of functions to handle various CRUD operations. One operation that might come in handy is......
How to Bulk Insert Data with Eloquent in Laravel
Updated: Jan 22, 2024
Introduction Bulk inserting data in a database is a common task for developers, especially when dealing with large amounts of data. Laravel, a popular PHP framework, provides an easy and efficient way to handle bulk inserts using......
How to run background, heavy tasks in Laravel: An in-depth guide
Updated: Jan 22, 2024
Overview When building web applications with Laravel, running heavy tasks in the background is essential for ensuring quick response times and a smooth user experience. In this in-depth guide, we’ll cover how to delegate......
How to schedule tasks in Laravel: A developer’s guide
Updated: Jan 22, 2024
Introduction Task scheduling is an essential aspect of modern web application development. In Laravel, one of the most popular PHP frameworks, task scheduling is both powerful and simplistic allowing developers to fluently and......