mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Set visible to boolean cast
This commit is contained in:
parent
f1c5f37189
commit
5072d63436
@ -79,10 +79,6 @@ class CompanyGateway extends BaseModel
|
||||
|
||||
public function getTypeAlias($gateway_type_id)
|
||||
{
|
||||
if ($gateway_type_id == 'token') {
|
||||
$gateway_type_id = 1;
|
||||
}
|
||||
|
||||
return GatewayType::find($gateway_type_id)->alias;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ class Gateway extends StaticModel
|
||||
'is_offsite' => 'boolean',
|
||||
'is_secure' => 'boolean',
|
||||
'recommended' => 'boolean',
|
||||
//'visible' => 'boolean',
|
||||
'visible' => 'boolean',
|
||||
'sort_order' => 'int',
|
||||
'updated_at' => 'timestamp',
|
||||
'created_at' => 'timestamp',
|
||||
|
@ -26,7 +26,8 @@ class GatewayType extends StaticModel
|
||||
const ALIPAY = 6;
|
||||
const SOFORT = 7;
|
||||
const APPLE_PAY = 8;
|
||||
|
||||
const SEPA = 9;
|
||||
|
||||
public function gateway()
|
||||
{
|
||||
return $this->belongsTo(Gateway::class);
|
||||
|
Loading…
Reference in New Issue
Block a user