Initial commit
This commit is contained in:
25
app/Models/AirtelBroker.php
Normal file
25
app/Models/AirtelBroker.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
use App\Core\Model;
|
||||
|
||||
class AirtelBroker extends Model {
|
||||
protected static $table = 'airtel_money_wallets';
|
||||
|
||||
public static function findActive() {
|
||||
return self::builder()->where('status', 'active')->get();
|
||||
}
|
||||
|
||||
|
||||
public static function getBroker($wallet_id){
|
||||
|
||||
$details = self::builder()->where('id', $wallet_id)->get();
|
||||
if ($details == false) {
|
||||
return false;
|
||||
}
|
||||
return $details;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user