opnform/app/Models/Forms/FormStatistic.php

37 lines
577 B
PHP
Raw Normal View History

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 FormStatistic extends Model
{
use HasFactory;
2024-02-23 10:54:12 +00:00
2022-09-20 19:59:52 +00:00
public $timestamps = false;
protected $fillable = [
'form_id',
'data',
2024-02-23 10:54:12 +00:00
'date',
2022-09-20 19:59:52 +00:00
];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'data' => 'array',
];
/**
* Relationships
*/
public function form()
{
return $this->belongsTo(Form::class);
}
}