Support the ongoing development of Laravel.io →

991 Threads

another eager loading question

i have a category with many products with many pictures This returns all products for a category wit...

0 Likes
1 Replies
Solved

Update existing row with unique rule (validation fails)

Hi, first question I cant find working answer. Laravel 4.1 ###rules public static $rules = [ 'name'...

0 Likes
7 Replies
Solved

limit ::with query

I couldn't find an answer to this so.... Is there anyway to limit Product::with('picture') to only g...

0 Likes
3 Replies
Solved

Advanced search combined values of 2 columns

Hi, i'm trying to create a search functionality that uses 3 tables, and it uses combined values from...

0 Likes
5 Replies
Solved

Advanced queries in a Laravelesque way

Is there a 'Laravel way' of writing something like this? $products = Product::select(DB::raw( 'mw_pr...

0 Likes
3 Replies
Solved

Query for Google Map

Hi guys, I'm new to Laravel and enjoy to play with it. But I stuck almost 2 hours on using query bui...

0 Likes
2 Replies
Solved

has() on a hasOne()-relationship to the same table

Consider the following setup (and let's not discuss wether it makes sense as it's only an example)....

0 Likes
5 Replies
Solved

how do i get the insertID of the inserted product ?

if i do $browsenode->products()->save($product); thanks in advance dudi

0 Likes
1 Replies
Solved

Query Builder Problem (Order by a related Table)

Hi Guys, i have a problem with my table structure and the query builder, as i am not able to build t...

0 Likes
1 Replies
Solved

Why two queries in Relationships, not join ?

When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...

0 Likes
9 Replies
Solved
posted 10 years ago

Can't change Database connection?

I had MySQL setup on the same server as apache. I now created a new instance, and migrated all MySQL...

0 Likes
3 Replies
Solved
posted 10 years ago

strange Date (Europe/Berlin) convert the right way?

HI i have a Datepicker plugin to pick up some dates i get the dates in the input field like (d.m.Y)...

0 Likes
1 Replies
Solved

MySQL query with curdate() not working

I'm rewriting a site using Laravel and having problems with queries involving dates. This is a pre-L...

0 Likes
3 Replies
Solved

Eager loading with "limit" not working.

I have two tables news and comments. News can have many comments: //News public function comments()...

0 Likes
1 Replies
Solved

Fills created_at and updated_at on record creation

The timestamps are being filled in both the created_at and updated_at when a record is created in my...

0 Likes
5 Replies
Solved
posted 10 years ago

Laravel pagination is damn slow

I was looking for a bottle neck of my app and it turned to be the laravel pagination. I have a table...

0 Likes
6 Replies
Solved

Describe model table

Hello i was wondering is there an easy way to describe table that corresponds to specific model like...

0 Likes
1 Replies
Solved
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

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

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

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.