opnform/app/Models/Forms/FormSubmission.php

28 lines
426 B
PHP

<?php
namespace App\Models\Forms;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FormSubmission extends Model
{
use HasFactory;
protected $fillable = [
'data',
];
protected $casts = [
'data' => 'array',
];
/**
* RelationShips
*/
public function form()
{
return $this->belongsTo(Form::class);
}
}