adrema/app/Payment/Subscription.php

20 lines
396 B
PHP
Raw Normal View History

2021-07-04 01:44:41 +02:00
<?php
namespace App\Payment;
2022-01-02 12:32:57 +01:00
use App\Fee;
2021-07-04 01:44:41 +02:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
2022-01-02 12:32:57 +01:00
use Illuminate\Database\Eloquent\Relations\BelongsTo;
2021-07-04 01:44:41 +02:00
class Subscription extends Model
{
use HasFactory;
public $fillable = ['name', 'amount', 'fee_id'];
2022-01-02 12:32:57 +01:00
public function fee(): BelongsTo {
2021-07-04 01:44:41 +02:00
return $this->belongsTo(Fee::class);
}
}