Files
monica/app/Models/GroupType.php
T

35 lines
638 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class GroupType extends Model
{
use HasFactory;
protected $table = 'group_types';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'account_id',
'name',
];
/**
* Get the account record associated with the group type.
*
* @return BelongsTo
*/
public function account()
{
return $this->belongsTo(Account::class);
}
}