Recent posts with #PHP

Laravel devs, how do you handle bulk deletes? 🗑️

A: New method in ModelController
B: Separate controller
C: Destroy method with conditions

Share your approach! #Laravel #PHP

66

image
𝗧𝗶𝗽 𝗼𝗳 𝗧𝗵𝗲 𝗗𝗮𝘆 𝗳𝗼𝗿 𝗟𝗮𝗿𝗮𝘃𝗲𝗹𝗶𝗮𝗻𝘀❤️

Laravel is amazing when it comes to simplifying data filtering and collection manipulation. Let's dive into an incredibly handy feature Laravel provides with collection methods! 🚀💪

𝟏. 𝐖𝐡𝐚𝐭 𝐢𝐬 𝐇𝐚𝐩𝐩𝐞𝐧𝐢𝐧𝐠?
𝗿𝗲𝗷𝗲𝗰𝘁(): Quickly excludes all items that match certain conditions.

𝟐. 𝐔𝐬𝐞 𝐂𝐚𝐬𝐞
Imagine you want to manage a user list displaying only active members in your application dashboard. Using collection methods like 𝗿𝗲𝗷𝗲𝗰𝘁(), you can easily clean up your data without cluttering your codebase with loops or complex conditions.

Clean code, clearer logic!

#CodeTips
#Laravelians
#Laravel
#CleanCode
#WebDevelopment
#PHP
#BestPractices

2

73

🚨 Laravel devs — this one’s BIG.

This Saturday on our Laravel Spotlight Series, we're going LIVE with the Director of Certification for Laravel 🎓

The Certification for Laravel is now community-driven, and we’re diving deep into:

🔹 Why it’s evolving
🔹 What changes have been made
🔹 How the new model empowers YOU
🔹 What’s ahead for 2025
🔹 Plus: a LIVE Q&A with the community

If you care about credibility, career growth, or Laravel’s future — this is your stream. Don’t miss it.

#Laravel #CertificationForLaravel #PHP
youtube.com/live/7NysaHcoqn8

1

63

How do you keep track of your #PHP test groups? When I want to add one there's no convenient way to determine what ones already exist. Thinking of creating an Enum to hold them, but maybe that's overkill.

79