$res = DB::select( 'SELECT a.`actionid FROM actions a' );
$page = Input::get('page',1);
$total = count($res);
$perPage = Config::get('config.user.page');
$offset = ($page -1) * $perPage;
$res = array_slice($res, $offset, $perPage);
$rules = Paginator::make($res,$total,$perPage);
return View::make('action.rule_showlist')->withrules($rules);
{{$rules->links()}}
{{$rules->links()}}