2024-02-06 01:45:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Form\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-02-08 21:04:00 +01:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2024-02-06 01:45:25 +01:00
|
|
|
|
|
|
|
class Participant extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
public $guarded = [];
|
|
|
|
|
|
|
|
public $casts = [
|
|
|
|
'data' => 'json',
|
|
|
|
];
|
2024-02-08 21:04:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return BelongsTo<Form, self>
|
|
|
|
*/
|
|
|
|
public function form(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Form::class);
|
|
|
|
}
|
2024-02-06 01:45:25 +01:00
|
|
|
}
|