Pagination, Eloquent outside of Laravel -


has used laravels pagination , eloquent outside of framework.

i get:

reflectionexception class paginator not exist 

when call:

public function indexaction() {     // $results = news::get(); <--- works fine     $results = news::paginate(6); <---  not      return $this->renderview('index', compact('results', 'pagination')); } 

everything autoloading , installed via composer can't imagine issues there.

anyone have experience this?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -