i have something problem in there i want to change date format. this my view :
<?php echo $post->tanggal?>
and my controller :
public function getIndex()
{
$posts = DB::table("lembur_karyawan")
->orderBy('id', 'desc')
->paginate(6);
return view('user',['posts'=>$posts]);
}
this my view and what i want to do
if someone tell me to use carbon please explain how to use it ?
NB : i use laravel 5.1
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire