Change date format laravel 5
<p>i have something problem in there i want to change date format. 
this my view :
</p>



<pre><code>  @foreach ($posts as $post)
                    &lt;tr&gt;
                      &lt;td&gt;
                      &lt;?php echo $post-&gt;id?&gt;
                      &lt;/td&gt;
                      &lt;td class="mailbox-star"&gt;&lt;?php echo $post-&gt;nama?&gt;&lt;/td&gt;
                      &lt;td class="mailbox-name"&gt;&lt;?php echo $post-&gt;tanggal?&gt;&lt;/td&gt;
                      &lt;td class="mailbox-subject"&gt;&lt;?php echo $post-&gt;deskripsi?&gt;&lt;/td&gt;
                      &lt;td class="mailbox-date"&gt;&lt;?php echo $post-&gt;mulai?&gt; - &lt;?php echo $post-&gt;durasi?&gt;&lt;/td&gt;
                      &lt;td class="mailbox-date"&gt;&lt;?php echo $post-&gt;total?&gt; Jam&lt;/td&gt;
                      &lt;td class="mailbox-date"&gt;
                      &lt;a href="&lt;?php echo url('user/detail/'.$post-&gt;nama)?&gt;" class="btn btn-xs btn-danger"&gt;&lt;i class="fa fa-search-plus"&gt;&lt;/i&gt;&lt;/a&gt;
                      &lt;a href="&lt;?php echo url('user/edit/'.$post-&gt;id)?&gt;" class="btn btn-xs btn-success"&gt;&lt;i class="fa fa-pencil-square-o"&gt;&lt;/i&gt;&lt;/a&gt;
                      &lt;a href="&lt;?php echo url('user/delete/'.$post-&gt;id) ?&gt;" class="btn btn-xs btn-warning"&gt;&lt;i class="fa fa-times"&gt;&lt;/i&gt;&lt;/a&gt;
                      &lt;/td&gt;
                    &lt;/tr&gt;
                    @endforeach
</code></pre>



<p>and my controller :</p>





<pre><code>    public function getIndex()
    {   
        $posts = DB::table("lembur_karyawan")
        -&gt;orderBy('id', 'desc')
        -&gt;paginate(6);

        return view('user',['posts'=&gt;$posts]);
    }
</code></pre>



<p>this my view and what i want to do:</p>

<p><a href="https://i.stack.imgur.com/6LDXX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6LDXX.png" alt="enter image description here"></a></p>

<p>if someone tell me to use carbon please explain how to use it ? </p>

<p>NB : i use laravel 5.1</p>