2025-10-17 14:27:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use App\Enums\Contact\ContactFormType;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class ContactCount extends Model
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
|
*
|
2026-02-12 17:14:08 +01:00
|
|
|
* @var list<string>
|
2025-10-17 14:27:16 +02:00
|
|
|
*/
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'type',
|
|
|
|
|
'submissions'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The attributes that should be cast.
|
|
|
|
|
*
|
|
|
|
|
* @var array<string, string>
|
|
|
|
|
*/
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'type' => ContactFormType::class,
|
|
|
|
|
];
|
|
|
|
|
}
|