opnform/app/Models/Forms/FormStatistic.php

39 lines
608 B
PHP
Raw Normal View History

2022-09-20 19:59:52 +00:00
<?php
namespace App\Models\Forms;
use App\Models\Forms\Form;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class FormStatistic extends Model
{
use HasFactory;
public $timestamps = false;
protected $fillable = [
'form_id',
'data',
'date'
];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'data' => 'array',
];
/**
* Relationships
*/
public function form()
{
return $this->belongsTo(Form::class);
}
}