Mahmoud Ramadan

Mahmoud Ramadan @mmramadan496

About: Computer Science Geek 🧐 || Software Engineer 👨‍💻 || Digging Code Creator 🚀

Location:
Mansoura, Dakahlia, Egypt
Joined:
Jan 15, 2024

Mahmoud Ramadan
articles - 19 total

Breaking Multiple Loops in PHP 🔁

In PHP, you are probably familiar with the break keyword, which is used to stop a loop. What many...

Learn More 0 0Feb 19

Using Custom Timestamp Columns in Laravel Eloquent

If you need to customize the column names for created_at and updated_at, you can do so at the...

Learn More 1 0Dec 19 '25

Two Overlooked Laravel Features: `fresh()` and Attribute Visibility

🔁 Reloading Models with fresh() Laravel's fresh method allows you to reload a model or an...

Learn More 0 0Dec 13 '25

💡 Two Lesser-Known Laravel Tricks: numerify & invisible

Laravel is full of hidden gems that can make your development smoother. Today, I want to highlight...

Learn More 0 6Dec 11 '25

Rehashing Passwords on Login

I encountered a strange scenario while adding a feature to the Admin Dashboard. The problem was that...

Learn More 0 0Jul 19 '25

Enhancing Blade with Custom Directives

If you're using the same condition repeatedly in Blade, especially if it's complex, you likely won't...

Learn More 0 0Jul 2 '25

Looping Through Data in Blade

Laravel Blade offers several clean and expressive ways to loop through data. 1. Basic Loop...

Learn More 0 0Jul 2 '25

Injecting Services in Blade Templates

In certain rare scenarios, you should create an instance of a class and call its methods directly...

Learn More 7 15Jun 26 '25

Tweak Laravel Routes to Fit Your Needs

Laravel offers flexible methods for handling route model binding. You can bind models dynamically by...

Learn More 0 0Jun 26 '25

Using User Locale for Notifications

It is considered best practice to send notifications and emails in the recipient's preferred locale....

Learn More 0 1Jun 18 '25

Clone Eloquent Models Selectively

Sometimes, you may need to duplicate a model instance and create a new one with some custom changes....

Learn More 0 0Jun 18 '25

Handling Validation Errors for Multiple Forms

When dealing with multiple forms on a single page, especially when the forms contain duplicate input...

Learn More 0 1Jun 12 '25

Customizing Pagination links and sliding window

Let’s explore some powerful Laravel pagination methods that supercharge your pagination...

Learn More 0 0Jun 12 '25

Simplify Laravel Validation with the Rule Class

I previously shared a tip on how to validate attributes conditionally. However, I didn't fully...

Learn More 1 1Jun 8 '25

Add Top-Level Data with Resource

Let’s explore a handy tip for adding extra metadata to the top level of your API responses. Assume...

Learn More 0 2Jun 8 '25

Using Traits and DocBlocks for Cleaner Architecture 🤵

I worked on a custom CRUD command that generates a Model, Migration, Views, Controller, Request,...

Learn More 0 0May 10 '25

Auto-Delete Files After Download In Laravel 😎

If you're using Laravel's methods to download a file, it's important to delete it afterward to avoid...

Learn More 1 0Feb 21 '25

🔓 Unlock the Power of Easy Model: Features You’ll Love!

✨ Switching between Query Builder and Eloquent Builder has never been easier. With just one simple...

Learn More 1 0Dec 15 '24

It's launch day! 🚀

A new version of Easy Model, Custom Fresh, and M.R Darkest Theme has been released 💥 The v1.0.9 of...

Learn More 5 8Nov 8 '24