tegos
tegos

Ivan Mykhavko

@tegos

Software engineer

â€ĸ 4 Posts â€ĸ 172 Views

  • No matching results...
  • Searching...

/ 255

Poll Options

Laravel Performance Tip 🚀
Stop hitting the cache twice! Many devs do `Cache::has()` before `Cache::get()` - but that doubles the work for the same key.
Benchmarks say it all:
- ⏱ Execution: 14ms → 6ms
- 🧠 Memory: 47MB → 43MB
- 🔑 Cache calls: 2 → 1
✅ Fix: skip `has()`, just `get()` and check for null:

$value = Cache::get($key);
if ($value !== null) return $value;

Tiny tweak, huge impact under load. Full examples and results in the article!
dev.to/tegos/laravel-cache-tip-avoid-redundant-hasmissing-calls-4hi1

#Laravel #PHP #LaravelTips

â€ĸ â€ĸ

50

â€ĸ
â€ĸ

🚀 Optimized my Laravel vendor/ folder and cut it from 200.6 MB ➝ 119.8 MB (40% lighter) đŸĒļ

Result: faster deploys, smaller Docker images, smoother CI/CD.

Inspired by @jclermont article on trimming the AWS SDK, I ran my own cleanup experiment and shared the steps here:

dev.to/tegos/optimize-vendor-folder-size-1m01



#Laravel #PHP #DevOps

1 â€ĸ â€ĸ

81

â€ĸ
â€ĸ

🚀 Excited to share my take on taming business logic in Laravel with Actions & Services! đŸ› ī¸ Say goodbye to bloated controllers with my practical approach using OrderCreateAction for operations and DeliveryScheduleService for reusable logic. Check out tips, code examples, and a decision matrix to keep your Laravel projects clean and scalable. Inspired by @nunomaduro and others.
dev.to/tegos/laravel-actions-and-services-360d


#Laravel #PHP #LaravelTips

â€ĸ â€ĸ

76

â€ĸ
â€ĸ