In this video, we will look at the comparison between normal if statement and when conditional used in Laravel's Model. Here we will compare by looping between 100,000 data and see how long will each take. ====== Social Media Links: Let's be friends https://www.instagram.com/aashish_dhamala/ Follow On Facebook https://www.facebook.com/laratipsofficial Laravel Deep Dive - See why 'when' is so much slower than 'if' statement: https://www.youtube.com/watch?v=MAshxywwRlE Why Laravel's 'When' Method Is Slower Than 'If' Statement? - Laravel Deep Dive https://youtu.be/MAshxywwRlE The comparison spreadsheet: https://docs.google.com/spreadsheets/d/1XABJfrZDaTlDAm70V26YK1P26CTAuzgKxa6mhBFNBxo/edit?usp=sharing Tech stack: Laravel PHP #laravel #php #laraveltip #laratips

Laravel Performance Hack: Process Huge CSVs 3500x Faster!
2.6K views

Refactoring Laravel Blade Components | Eliminate Duplicate Scripts & Styles
591 views

Episode 6 - Laravel Deploys Made Safe - Staging First Workflow
299 views

Weekly Laravel Updates - Episode 4
187 views

Episode 5 - Making Reminder Emails Faster - Queue Processing with Supervisor
279 views

Episode 4 - Automatically Sending Reminder Emails - Cron Jobs
538 views