Laravel Eloquent findOrNew(): How Does It Work?

An example of an “unknown“ method and how to research what it does under the hood. Links mentioned in the video: - Getting Started with Laravel Reverb - Source of findOrNew() #L510 - optional() Helper #method-optional - - - - - Support the channel by checking out my products: - My Laravel courses: - Filament examples: - Livewire Kit Components: - - - - - Other places to follow: - My weekly Laravel newsletter: - My personal Twitter:
Back to Top