@gauravjoshi
Full-stack web developer with rich experience on both the front-end and back-end of web development (LAMP/WAMP & MERN Stack).
Nothing here yet.
Nothing here yet.
May 1, 2025 · 1 min read · Why You Should Never Concatenate SQL Strings in Laravel $email = $_GET['email']; $sql = "SELECT * FROM users WHERE email = '$email'"; $users = DB::select($sql); This works fine if the email is normal, like john@example.com. But if a malicious user e...
Join discussionMay 1, 2025 · 1 min read · Livewire is a full-stack framework for Laravel that allows you to build modern, dynamic interfaces using Blade (Laravel’s templating engine) — without writing any JavaScript. 🔹 Key Features: Reactive components: Update UI automatically when data ch...
Join discussionMay 1, 2025 · 2 min read · The Entity-Attribute-Value (EAV) pattern is a data model used when you need to store flexible, schema-less data — especially when the number or types of attributes vary widely between records. In Laravel, this can be implemented using multiple relate...
Join discussionMay 1, 2025 · 2 min read · In Laravel, DTO stands for Data Transfer Object. It's a design pattern used to encapsulate and transfer data between layers (such as from the controller to the service layer or to a view), ensuring better structure, type safety, and separation of con...
Join discussion