Files
MKM/app/Models/AccountType.php
2024-08-05 08:04:35 +08:00

26 lines
502 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class AccountType extends Model
{
use HasFactory;
protected $guarded = [];
/**
* Get all of the accounts for the AccountType
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function accounts(): HasMany
{
return $this->hasMany(Account::class);
}
}