Files
exchange/app/Booking.php
T
Jack Goh f201f33f28 update dockerfile with gd to fix test error
update create booking controller to accept rmb to myr only
2018-06-18 12:10:58 +08:00

20 lines
441 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Booking extends Model
{
// protected $guarded = [];
protected $fillable = ['term', 'rate_id', 'user_id', 'amount', 'account_name', 'account_num', 'bank_name',
'bank_branch', 'company_name'];
public $timestamps = true;
public function user(){
return $this->belongsTo('app\User');
}
}