title: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'id_paket' at row 1
body: <blockquote>
    <p>SQLSTATE[01000]: Warning: 1265 Data truncated for column 'id_paket' at
    row 1 (SQL: insert into <code>tbl_pesanan</code> (<code>id_paket</code>, <code>kode_bmn</code>,
    <code>kode_unit</code>, <code>jenis_barang</code>, <code>kuantitas</code>, <code>satuan_ukuran</code>,
    <code>status_pesanan</code>) values (18,18, 1010101002,1010101002, 1001,1001,
    ASus,ASus, 6,6, UNit,UNit, 1))</p>
  </blockquote>
  
  <p>what happened, can you help me? </p>
  
  <pre><code>public function store_pesanan(request $request,$id){
          if(!Session::get('login')){
              return redirect('/login')-&gt;with('alert','Kamu harus login dulu');
          }
          else{
              DB::table('tbl_paket')
              -&gt;where('id_paket',$id)
              -&gt;update(['status_paket' =&gt; $request-&gt;status_paket]);
  
              $data = new ModelPesanan();
              $data-&gt;id_paket         = implode(',', $request-&gt;input('id_paket'));
              $data-&gt;kode_bmn         = implode(',', $request-&gt;input('kode_bmn'));
              $data-&gt;kode_unit        = implode(',', $request-&gt;input('kode_unit'));
              $data-&gt;jenis_barang     = implode(',', $request-&gt;input('jenis_barang'));
              $data-&gt;kuantitas        = implode(',', $request-&gt;input('kuantitas'));
              $data-&gt;satuan_ukuran    = implode(',', $request-&gt;input('satuan_ukuran'));
              $data-&gt;status_pesanan   = $request-&gt;get('status_pesanan');
              $data-&gt;save();
  
              Alert::success('Sukses!', 'Berhasil Menambahkan Pesanan!');
              return redirect ('/daftar_paket');  
          }
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DGDfv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DGDfv.png" alt="enter image description here"></a></p>