Set visible to boolean cast

This commit is contained in:
David Bomba 2020-10-12 10:21:24 +11:00
parent f1c5f37189
commit 5072d63436
3 changed files with 3 additions and 6 deletions

View File

@ -79,10 +79,6 @@ class CompanyGateway extends BaseModel
public function getTypeAlias($gateway_type_id) public function getTypeAlias($gateway_type_id)
{ {
if ($gateway_type_id == 'token') {
$gateway_type_id = 1;
}
return GatewayType::find($gateway_type_id)->alias; return GatewayType::find($gateway_type_id)->alias;
} }

View File

@ -20,7 +20,7 @@ class Gateway extends StaticModel
'is_offsite' => 'boolean', 'is_offsite' => 'boolean',
'is_secure' => 'boolean', 'is_secure' => 'boolean',
'recommended' => 'boolean', 'recommended' => 'boolean',
//'visible' => 'boolean', 'visible' => 'boolean',
'sort_order' => 'int', 'sort_order' => 'int',
'updated_at' => 'timestamp', 'updated_at' => 'timestamp',
'created_at' => 'timestamp', 'created_at' => 'timestamp',

View File

@ -26,7 +26,8 @@ class GatewayType extends StaticModel
const ALIPAY = 6; const ALIPAY = 6;
const SOFORT = 7; const SOFORT = 7;
const APPLE_PAY = 8; const APPLE_PAY = 8;
const SEPA = 9;
public function gateway() public function gateway()
{ {
return $this->belongsTo(Gateway::class); return $this->belongsTo(Gateway::class);