{
"name": "illuminate-example/eloquent",
"description": "Implementation of Database Queries with illuminate and Eloquent",
"type": "project",
"require":
{
"ramsey/collection": "^1.2"
}
}
{
"name": "illuminate-example/eloquent",
"description": "Implementation of Database Queries with illuminate and Eloquent",
"type": "project",
"require":
{
"illuminate/database": "5.1.8",
"ramsey/collection": "^1.2"
}
}
<?php
require 'vendor/autoload.php';
$average = collect([
['foo' => 10],
['foo' => 10],
['foo' => 20],
['foo' => 40],
])->avg('foo');
dd($average);
?>
{
"name": "illuminate-example/eloquent",
"description": "Implementation of Database Queries with illuminate and Eloquent",
"type": "project",
"require":
{
"laravel/tinker": "^2.5",
"ramsey/collection": "^1.2"
}
}
{
"name": "illuminate-example/eloquent",
"description": "Implementation of Database Queries with illuminate and Eloquent",
"type": "project",
"require":
{
"illuminate/database": "^2.5",
"ramsey/collection": "^1.2"
},
"autoload":
{
"psr-4":
{
"Controllers\\": "app/controllers/",
"Models\\": "app/models/"
}
}
}