- Fully transitioned the backend to the Porto architectural pattern - Improved code organization and maintainability - Fixed minor bugs and inconsistencies
23 lines
418 B
PHP
23 lines
418 B
PHP
<?php
|
|
|
|
namespace App\Containers\Widget\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CustomFormResponse extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = false;
|
|
|
|
protected $casts = [
|
|
'answers' => 'array'
|
|
];
|
|
|
|
public function form()
|
|
{
|
|
return $this->belongsTo(CustomForm::class, 'custom_form_id', 'id');
|
|
}
|
|
}
|