2022-09-20 19:59:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Forms;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class FormSubmission extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $fillable = [
|
2024-02-23 10:54:12 +00:00
|
|
|
'data',
|
2022-09-20 19:59:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
protected $casts = [
|
2024-02-23 10:54:12 +00:00
|
|
|
'data' => 'array',
|
2022-09-20 19:59:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* RelationShips
|
|
|
|
*/
|
2024-02-23 10:54:12 +00:00
|
|
|
public function form()
|
|
|
|
{
|
2022-09-20 19:59:52 +00:00
|
|
|
return $this->belongsTo(Form::class);
|
|
|
|
}
|
|
|
|
}
|