Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Max Helper Function

$max = collect([
    ['foo' => 10],
    ['foo' => 20]
])->max('foo');
 
// 20
 
$max = collect([1, 2, 3, 4, 5])->max();
 
// 5
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Max #Helper #Function
ADD COMMENT
Topic
Name
1+6 =