I developed a laravel application and i want to paginate a view,
look my controller.
$times=DB::table('timesheets')
->leftJoin('users', 'timesheets.timesheet_user', '=', 'users.id')
->leftJoin('projects','projects.project_id','=','timesheets.timesheet_project_id')
->where('timesheet_user','=',$user)
->paginate(5);
return View::make('timesheet/index')->with('times',$times)->with('projects',$projects);
Getting result finly in view, but when i try to show the links. it showing error like below,
Call to undefined method stdClass::links()
<?php echo $times->links(); ?>
what is the error in my code ?
THanks