e29 firstWhere()

Login to make annotations or mark as watched.


Login to write notes for this video.


In this episode, we take a look at the filtering method of firstWhere(), a convenient shortcut method that allows a where() and first() call, all in one method. We also take a look at an upcoming change in Laravel 5.8.

About this Course

In this series, we take a look at each of the available methods in the Laravel Collection class and dive deep through examples in explaining what it does.

  • Subscribe to the channel