The
Read more in the official Laravel docs.
first method returns the first element in the collection that passes a given truth test.Read more in the official Laravel docs.