Support the ongoing development of Laravel.io →

4,587 Threads

posted 10 years ago

How to solve this with N+1 issue? Customer has a lot of activities, I want to take the latest one

Relation: One customer has many activities. From the Index page, I want to show the latest activity...

0 Likes
5 Replies
Solved

How to build a small site in a day (upload images feature)

Hi! I have a very specific small project need -- I need users to be able to upload their images (and...

0 Likes
2 Replies

How to submit data to multiple tables in the same form

I have 2 tables: listings and listings_specifications Listings table id type status location specifi...

0 Likes
1 Replies

Using Ardent and putting validation in the model. Any reviews, thoughts, or insight?

I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my m...

0 Likes
2 Replies

Configuring Connection Pooling on Laravel 4.1.x

I'm unable to figure out how to set up/configure connection pooling for my SaaS app created using La...

0 Likes
0 Replies

Only pulling data from 7 days ago

Hey everyone, I am working on creating a news area for a local organization in my hometown. The basi...

0 Likes
1 Replies
Solved

3NF database design ( And Conditions )

I have a 3NF design (Tag , Item_Tag, Item) As below but it wont work because i'm looping the same ol...

0 Likes
2 Replies

Artisan doesnt create table

I tried to create a table with artisan but it`s not setting up the table: I already puted the relev...

0 Likes
0 Replies

Meta Data store suggestion

I am trying to create an application that would store lots of meta data for a user and the same meta...

0 Likes
2 Replies
Solved

Using model scopes gives Method not found

I'm having a bunch of trouble with model scopes. I have one scope that works properly, called direct...

0 Likes
4 Replies
Solved
posted 10 years ago

Raw SQL to Eloquent form

How do I translate this to eloquent or query builder? DELETE p1 FROM products p1, products p2 WHERE...

0 Likes
0 Replies
posted 10 years ago

Large volume processing

Hello Does any body have any code to batch process 200k+ records are calls and i am post processing...

0 Likes
1 Replies
Solved

How to sync() more than the primary keys?

I have a many to many relationship setup like this: Product Model: public function skus() { return...

ostap liked this thread

1 Likes
1 Replies
posted 10 years ago

artisan:migrate:refresh undefined method

http://laravel.io/bin/mNVV

0 Likes
1 Replies
Solved
posted 10 years ago

Would this hit the database once or twice?

Does the first line go to the database and wait for a response and then move on? Or are these combin...

0 Likes
6 Replies

Listing data with whereExists

I'm currently working on a browser game built with Laravel to get into laravel more. I'm currently r...

0 Likes
2 Replies

Query Builder to Eloquent

Hi, How can I convert this Query Builder Statement in Eloquent? return \DB::table('province')->jo...

0 Likes
5 Replies

Inforce an orderBy on a Model

I have a model where I always want the results to orderBy a certain way. Is there a way to enforce...

0 Likes
5 Replies

Status updates by Friends

Hey fellow Laravel friends, I'm trying to build status updates like Facebook. But my question is how...

0 Likes
3 Replies

Mysql read replicas

Hi guys, I'm new to laravel. This is a great framework. I'm ran into an issue that I don't know how...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

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.