Skip to content

Mohcin Bounouara

Thoughts about software engineering and life

13 Nov 2025

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 walks you through converting an existing Laravel application from auto-incrementing integer IDs to UUIDs. Why Use UUIDs? Pros: – Security: Prevents ID enumeration attacks (users Continue reading “How to Add UUIDs to an Existing Laravel Database”

27 Oct 2025
22 Oct 2025
18 Oct 2025
17 Sep 2025
31 Jul 2025

Use site.local Instead of localhost/mysite on apache without using docker or DDEV

Let’s suppose you’re using Apache on your local machine and you want to visit your PHP project using something like http://site.local instead of http://localhost/mysite. You’re not using Docker, DDEV, or any container tools, just plain XAMPP or Apache on Linux. Here’s how to set it up: Map your custom domain locall Edit your /etc/hosts file: Continue reading “Use site.local Instead of localhost/mysite on apache without using docker or DDEV”

29 Jul 2025

Building a reply system for comments in Laravel -Without a Subcomments Table-

Many developers, when adding a “reply to comment” feature in a Laravel app, often consider creating a separate sub_comments table (I was one of them, based on my lack of experience, I know this later). It sounds intuitive, because a reply is different from a comment, right? logic thinking But there’s a cleaner, more strict Continue reading “Building a reply system for comments in Laravel -Without a Subcomments Table-“

19 May 2025
26 Mar 2025
25 Mar 2025

Document the problem you solves

Documenting the problems you solve will save you time and stress when you need to implement similar solutions in the future. You can document your solutions in many forms: