title: how to represent MySql zerofill in JSON response
body: <p>Hello everyone I am tring to retrive my Column That have a zerofill specifications with json response but it seems to be that php ignore the zeros in there , so i tried to use <code>str_pad</code> to do the same work as the zerofill but it's ignore it too !!! 
  so how can i fix that issue ? 
  here is my code </p>
  
  <pre><code>public function getGeneralPost(){
      $post =Post::inRandomOrder()-&gt;orderBy('created_at', 'DESC')-&gt;get();
      foreach ($post as $item){
          $categories = Category::where('id' , $item-&gt;post_subtype)-&gt;select('category_title')-&gt;first();
          $categories_type = Category::where('id' , $item-&gt;post_type)-&gt;select('category_title')-&gt;first();
          $item-&gt;post_subtype = $categories-&gt;category_title;
          $item-&gt;post_type = $categories_type-&gt;category_title;
          $item-&gt;id = str_pad($item-&gt;id ,10,'0',STR_PAD_LEFT);// here I am usting str_pad     
      }
      $success['posts'] =$post;
      return response()-&gt;json(['code'=&gt;'success','success' =&gt; $success], $this-&gt;successStatus);
  }
  </code></pre>