title: Laravel truncated data
body: <p>I have small problem with Laravel truncated data.
  I'm passing to my backend value that can be 'percent' or 'amount' as defined in table, but it can be nulled in table as well, but every time when I try to set it to null I have error like:</p>
  <blockquote>
  <p>{ &quot;discount_currency&quot;: [ &quot;The value you have entered is invalid.&quot; ] }</p>
  </blockquote>
  <p>or when I delete enum from handling request it says</p>
  <pre><code>[ { &quot;title&quot;: &quot;Something went wrong!&quot;, &quot;message&quot;: &quot;SQLSTATE[01000]: Warning: 1265 Data truncated for column 'discount_currency' at row 1 (SQL: update `products` set `discount_amount` = 0, `discount_currency` = null, `products`.`updated_at` = 2021-12-14 13:50:28 where `id` = 3)&quot; } ]
  </code></pre>
  <p>So I'm passing data threw API from my Vue, and request for this pram looks like:</p>
  <pre><code>discount_currency' =&gt; [
                  'string',
                  'nullable',
                  new EnumValue(EnumProductDiscountCurrencies::class, false) ?? null
              ]
  </code></pre>
  <p>So if I delete <code>new EnumValue</code>... I have secound error.
  Enum is defined simply:</p>
  <pre><code>public const percent = 'percent';
  public const euro = 'euro';
  </code></pre>
  <p>What am I doing wrong here? This table can be nulled, and I can change it directly from database, why I can't handle it here?
  btw there is default value defined in database. This is the migrations</p>
  <pre><code>Schema::table('products', function (Blueprint $table) {
              $table-&gt;enum('discount_currency', ['percent', 'euro'])-&gt;default('percent');
          });
  </code></pre>