Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

call variable from inside a collection laravel

$accessMe = ' is the current number';
$somevariable = collect([1, 2, 3, 4])->map(function($value) use ($accessMe) {
  return $value . $accessMe; 
}
 
PREVIOUS NEXT
Tagged: #call #variable #collection #laravel
ADD COMMENT
Topic
Name
4+7 =