Been working in this for Hours, I want to print the Controller Variable in the Views. Here is my Code:
Controller:
$mydate=Carbon::now()->addHours(8);
$newdate=$mydate->toDateString();
$mydata = DB::table('attendances')->where('date_only', '=', $newdate)->get();
return View::make('Home')->with($mydata);
And here is my View
<div> {{$mydata}} </div>
I'm just getting error with this code