Hi. I'm trying to find all clients that made order for a total greater than given ammount. I've got Users Users name id and Orders Orders id user_id value with a belongsTo / hasMany relationship (simplified). I want to find all the Users that spedn, in total, more than $100. Can I do this with just...
I'm writing an ecommerce solution that aside for rendering the content as a response to request - like "/category/1" responds with the products lists - have to show all the other things - sidebars with "top selling products" etc. Where and how should I put the code that generates all that data that...
I've been trying to solve this, but Google is giving me all the wrong results. For simplicitys sake: table products id table categories id name table product_categories product_id category_id priority In Product model I've got: public function categories() { return $this->belongsToMany('Category', '...
I've got a quick question, that might make me sound like an idiot. I've got a camera object (lets call it cam). I can move it by translating ofc, cam.translate(0, 0, -1f) makes it go "further" into the screen. Can also rotate, cam.rotate(angle, 0, 1, 0). Now, if I move along the Z axis, everything w...
If someone would to send me a steam gift of a game not yet available in my country (eg. Deus Ex unlocks on 23rd in USA but 26th in Europe) would I still have to wait?