Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

collection get first element laravel

$first = $msgs->first(); // this does ->take(1) under the hood
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #collection #element #laravel
ADD COMMENT
Topic
Name
2+8 =