45 lines
985 B
PHP
45 lines
985 B
PHP
<?php
|
|
|
|
namespace App\Actions\Statistics;
|
|
|
|
class StatisticEvents
|
|
{
|
|
public static function load($filter)
|
|
{
|
|
$data = EventData::get($filter);
|
|
|
|
if (! $data) {
|
|
return [];
|
|
}
|
|
|
|
return [];
|
|
dd($data);
|
|
|
|
/*
|
|
"team_position" => "away"
|
|
"similar_past_matches" => "none"
|
|
"statistic_type" => "none"
|
|
"accuracy" => 0.5
|
|
"league_id" => "87"
|
|
"team_id" => null
|
|
"startDate" => null
|
|
"endDate" => null
|
|
"palyer_id" => null
|
|
|
|
'sport_id',
|
|
'league_id',
|
|
'home_id',
|
|
'away_id',
|
|
'starttime',
|
|
*/
|
|
|
|
// $res = StatistikoEvent::where('league_id', $league_id)->get();
|
|
// $result = DB::connection('mongodb')
|
|
// ->table('movies')
|
|
// ->where('league_id', $league_id)
|
|
// ->orWhere('home_id', $home_id)
|
|
// ->get();
|
|
|
|
}
|
|
}
|