GJGaurav Joshiinstatelyworld.hashnode.dev·May 1, 2025 · 1 min readGit Commands Cheat Sheethttps://gist.github.com/gauravrjoshi/cbc31079bf719a935cb69cde2d50e69300
GJGaurav Joshiinstatelyworld.hashnode.dev·May 1, 2025 · 1 min readWhy You Should Never Concatenate SQL Strings in LaravelWhy 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...00
GJGaurav Joshiinstatelyworld.hashnode.dev·May 1, 2025 · 1 min readLivewireLivewire 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...00
GJGaurav Joshiinstatelyworld.hashnode.dev·May 1, 2025 · 2 min readEntity-Attribute-Value (EAV) PatternThe 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...00
GJGaurav Joshiinstatelyworld.hashnode.dev·May 1, 2025 · 2 min readData Transfer Object in LaravelIn 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...00