*/ protected $fillable = [ 'enumType', 'lastname', 'firstname', 'message', 'email', 'phone', 'typeelevage', 'zonegeo', 'company', 'country', 'town', 'postalcode', 'type', 'typeExport', 'subject', 'newsletter', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'enumType' => ContactFormType::class, 'typeelevage' => AsEnumArrayObject::class . ':' . BreedType::class, 'zonegeo' => AsEnumArrayObject::class . ':' . Department::class, 'type' => AsEnumArrayObject::class . ':' . CustomerAskingType::class, 'typeExport' => AsEnumArrayObject::class . ':' . ExportAskingType::class, 'subject' => PressType::class, ]; /** * Construct method. * * @param array $attributes * @phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod */ public function __construct(array $attributes = []) { // phpcs:enable parent::__construct($attributes); } }