Support the ongoing development of Laravel.io →

kpzani

Joined 21 Mar 2014

Statistics

Threads 2
Replies 14
Solutions 3
Articles 0

Model with calculated sql field doesnt paginate

Hi All. I can't get the paginator to work with a calculated SQL field see below for example // this...

0 Likes
3 Replies
Solved

Shared variables best practice

I have a complex product setup on a shop, so the users basket includes a lot of info cached from the...

0 Likes
3 Replies
replied 9 years ago

Query building problem

I have no idea why this would happen but you can dump the querylog and check it out $queries = DB::g...

0 Likes
replied 9 years ago

Natural ordering of field name?

When I needed to do something similar in the past I just stuck in an extra field for sorting. When a...

0 Likes
Solved
replied 9 years ago

Filtering users country wise using dropdown lists

it looks like country_id is not set you can use a default value $country = Country::findOrFail(Inp...

0 Likes
replied 9 years ago

Question regarding aggregate in Query Builder

The count is needed for the paginate. If you just did take(10)->get() then it would only do what...

0 Likes
replied 10 years ago

Creating a 404 error

just a quick point from your sample code it looks like you are not using the getDashboard method of...

0 Likes

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.