Support the ongoing development of Laravel.io →
Requests Views Blade
Last updated 2 years ago.
0

I'm not having any issue regarding the appends.

0

Test this by replacing paginate(15) with get to see if your query is correctly passing results.

0

Also try a print_r on the results.

0

Yes, with the get works fine.

0

Is this l4 or l5

0

Try getting a count of the results and then try the ->skip($offset)->take($perpage)->get();

0

Solved it...

I dropped the following join it the query.

 ->join('games', function($join)
{
$join->on('tournaments.id', '=', 'games.tournament_id')
->where('games.game_type_id', '=', '1');
}) 

Worked fine.

Thanks

0

That was one yek of a query.
Do see this if you install L5:
http://laravel.io/forum/11-13-2014-laravel-5-pagination

Last updated 10 years ago.
0

I was being really dumb here. I replaced those lines by:

->join('games', 'tournaments.id', '=', 'games.tournament_id')
->where('games.game_type_id', '=', '1');
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.