adrema/app/Fee.php

32 lines
669 B
PHP
Raw Normal View History

2020-04-12 00:26:44 +02:00
<?php
namespace App;
2023-03-06 09:49:03 +01:00
use App\Nami\HasNamiField;
2021-07-04 12:09:30 +02:00
use App\Payment\Subscription;
2024-09-22 17:32:29 +02:00
use Database\Factories\FeeFactory;
2022-02-12 16:16:56 +01:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
2020-04-12 00:26:44 +02:00
class Fee extends Model
{
2024-09-22 17:32:29 +02:00
/** @use HasFactory<FeeFactory> */
2021-06-13 11:26:38 +02:00
use HasFactory;
2023-03-06 09:49:03 +01:00
use HasNamiField;
2021-06-13 11:26:38 +02:00
2023-02-17 18:57:11 +01:00
/** @var array<int, string> */
2021-04-10 00:29:48 +02:00
public $fillable = ['name', 'nami_id'];
2023-02-17 18:57:11 +01:00
/** @var bool */
2020-04-12 00:26:44 +02:00
public $timestamps = false;
2021-07-04 12:09:30 +02:00
2023-02-17 18:57:11 +01:00
/**
* @return HasMany<Subscription>
*/
2022-02-12 16:16:56 +01:00
public function subscriptions(): HasMany
{
2021-07-04 12:09:30 +02:00
return $this->hasMany(Subscription::class);
}
2020-04-12 00:26:44 +02:00
}