*/ protected $fillable = [ 'enumType', 'lastname', 'firstname', 'message', 'email', 'phone', 'typeelevage', 'zonegeo', 'company', 'country', 'town', 'postalcode', 'type', '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, 'subject' => PressType::class, ]; /** * Construct method. * * @param array $attributes */ public function __construct(array $attributes = []) { parent::__construct($attributes); } }