%PDF- %PDF-
Direktori : /var/www/html/hr/api/app/Models/ |
Current File : /var/www/html/hr/api/app/Models/MaintenancePaymentTransaction.php |
<?php namespace App\Models; /** * @property integer id * @property float amount * @property string currency * @property mixed paid_at * @property integer payment_id * @property MaintenancePayment payment */ class MaintenancePaymentTransaction extends BaseModel { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'amount', 'currency', 'paid_at', ]; protected $guarded = [ 'payment_id', ]; protected $dates = [ 'paid_at', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'id' => 'integer', 'amount' => 'float', 'currency' => 'string', 'paid_at' => 'date', 'payment_id' => 'integer', ]; public function payment() { return $this->belongsTo(MaintenancePayment::class, 'payment_id'); } }