28 lines
776 B
PHP
28 lines
776 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Traits\ApiResponser;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class WalletController extends Controller
|
|
{
|
|
use ApiResponser;
|
|
/**
|
|
* Create a new controller instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
public function activated(){
|
|
$networks = DB::select('SELECT networks.name AS network,networks.status AS status,networks.id,countries.name AS country,networks.country_id , configWallet.id_network FROM `networks`
|
|
INNER JOIN countries ON networks.country_id=countries.id LEFT JOIN configWallet ON configWallet.id_network = networks.id WHERE status = 1 AND id_network IS NOT NULL');
|
|
|
|
return $this->successResponse($networks);
|
|
}
|
|
}
|