Files
SkinbaseNova/app/Models/GroupRecruitmentProfile.php

36 lines
725 B
PHP

<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class GroupRecruitmentProfile extends Model
{
use HasFactory;
protected $fillable = [
'group_id',
'is_recruiting',
'headline',
'description',
'roles_json',
'skills_json',
'contact_mode',
'visibility',
];
protected $casts = [
'is_recruiting' => 'boolean',
'roles_json' => 'array',
'skills_json' => 'array',
];
public function group(): BelongsTo
{
return $this->belongsTo(Group::class);
}
}