Tag: Laravel

How to Add UUIDs to an Existing Laravel Database

Introduction UUIDs (Universally Unique Identifiers) are 128-bit identifiers that are globally unique, making them ideal for scenarios where you want to hide sequential ID patterns from your users. This article…

Handling Date Fields. A Common Pitfall

In my Laravel hobby project, I had a field called date_covered defined as a date type, with now() as the default value. However, when I needed to manipulate this field,…

Understanding Method Spoofing in Laravel

Title: Understanding Method Spoofing in Laravel When working with request/response methods, different HTTP methods like GET, POST, PUT, and PATCH have custom purposes. POST is generally used for creating resources,…

Advanced Dependency Injection in PHP

Dependency Injection is a technique (Design Pattern = Which mean its a common solution to a common problem in software development design) that allow use to create a code It helps to create loosely coupled code, making it easier to manage, test, and maintain.

Pivot table in Laravel

When you work on an app that requires a many-to-many relationship between tables, you often need a pivot table in your database to manage the associations between records. Let’s consider…