Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Illuminate\Database\Eloquent\Collection by Illuminate\Support…
…\Collection to support collection of Laravel's Paginator. So you can do in your Controller : $articles = Article::paginate(5); And in your 'app/views/articles/index.blade.php': @div_for($articles->getCollection()) as($article) {{ $article->name }} @end_div_for More info about pagination with Laravel: http://laravel.com/docs/4.2/pagination
- Loading branch information