25 lines
370 B
PHP
25 lines
370 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class FormSubmission extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [
|
||
|
|
'form_id',
|
||
|
|
'data',
|
||
|
|
'ip_address',
|
||
|
|
'user_agent',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'data' => 'array',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function form()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Form::class);
|
||
|
|
}
|
||
|
|
}
|