Pagenation in Laravel

 <p>In Controller funtion:<br />public function {</p>
<p>$variable = DB::table('table_name')-&gt;pageinate(number_of_record);<br />return view('page_name',compact('variable'));</p>
<p>}<br /><br />In view blade:-<br />{{$varible->links()}}</p> 

Answer