24 lines
495 B
PHP
24 lines
495 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
use App\Core\Model;
|
|
|
|
class MpambaBroker extends Model {
|
|
protected static $table = 'mpamba_tnm_wallets';
|
|
|
|
public static function findActive() {
|
|
return self::builder()->where('status', 'active')->get();
|
|
}
|
|
|
|
|
|
public static function getBroker($wallet_id){
|
|
$details = self::builder()->where('wallet_id', $wallet_id)->get();
|
|
if ($details == false) {
|
|
return false;
|
|
}
|
|
return $details;
|
|
}
|
|
}
|
|
|
|
|
|
?>
|