Pagenation in Laravel

 

In Controller funtion:
public function {

$variable = DB::table('table_name')->pageinate(number_of_record);
return view('page_name',compact('variable'));

}

In view blade:-
{{$varible->links()}}


Answer