34 lines
670 B
PHP
34 lines
670 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class GroupTypeRole extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'group_type_roles';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<string>
|
|
*/
|
|
protected $fillable = [
|
|
'group_type_id',
|
|
'label',
|
|
'position',
|
|
];
|
|
|
|
/**
|
|
* Get the group type record associated with the group type role.
|
|
*/
|
|
public function groupType(): BelongsTo
|
|
{
|
|
return $this->belongsTo(GroupType::class);
|
|
}
|
|
}
|