Home › Forums › Chart Support › Just wanna share using Laravel and Canvas JS › Reply To: Just wanna share using Laravel and Canvas JS
I don’t know how can i use in my code , this is my code in my controller : public function viewArchives(){ $data = Archive::select(‘created_at’)->get(); return view(‘view.archives’, compact(‘data’)); } and in view : <?php echo $data;?> the result is : {“created_at”:”2019-03-17 19:10:30″} but i want the result be like this : {“created_at”:”1552849830″}
how can i do this? thanks