

Using factories, managing metadata, and pecking PHP
18 snips Jan 30, 2025
Discover the latest in Laravel with juicy updates like fluent email validation and new features in version 11.39. Dive into innovative tools like CodeRabbit for AI-driven code reviews and PeckPHP for spelling checks in your codebase. Explore packages that manage metadata in Eloquent models and enhance application functionality. The hosts also discuss exciting upcoming events like Laracon EU and the practicality of Laravel in creating useful solutions, like a URL shortener and an analytics tool tailored for user insights.
AI Snips
Chapters
Transcript
Episode notes
Fluent Email Validation
- Use fluent email validation rules in Laravel 11.38 for a better experience.
- Chain rules like
rule email->strict->DNS
instead of comma-separated values.
Array Casting
- Use the array method to cast form request or fluent instance values into arrays.
- This simplifies passing arrays to arguments or handling optional array parameters.
Pipeline Cleanup
- Utilize the 'finally' method in pipelines for cleanup tasks.
- Execute callbacks regardless of the pipeline's outcome for better resource management.