mapper MaglooKeniaAll wip
This commit is contained in:
1 parent
a77bc4237b
commit
2f24abbc90
3 files changed
+59
-8
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\DbMapper\Helper;
|
||||
|
||||
use App\Models\CompetitionGroupProvider;
|
||||
|
||||
class FindCompetitionGroupById
|
||||
{
|
||||
public static function run(&$mapper)
|
||||
{
|
||||
if (isset($mapper['group_id'])) {
|
||||
$mapper['txodds_group_id'] = CompetitionGroupProvider::where('provider_id', $mapper['provider_id'])
|
||||
->where('provider_group_id', $mapper['group_id'])->value('competition_group_id');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user