migrate to gtea from bistbucket
This commit is contained in:
53
app/Models/Gateway.php
Normal file
53
app/Models/Gateway.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Gateway extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'mode',
|
||||
'data',
|
||||
'image',
|
||||
'status',
|
||||
'charge',
|
||||
'platform',
|
||||
'is_manual',
|
||||
'namespace',
|
||||
'accept_img',
|
||||
'manual_data',
|
||||
'currency_id',
|
||||
'instructions',
|
||||
'phone_required',
|
||||
];
|
||||
|
||||
public function currency()
|
||||
{
|
||||
return $this->belongsTo(Currency::class, 'currency_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'currency_id' => 'integer',
|
||||
'phone_required' => 'integer',
|
||||
'data' => 'json',
|
||||
'manual_data' => 'json',
|
||||
'charge' => 'integer',
|
||||
'is_manual' => 'integer',
|
||||
'accept_img' => 'integer',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user