Support the ongoing development of Laravel.io →

4,313 Threads

DB versus Eloquent execution time comparison

I've inherited an application that I'm supposed to "fix" from prior development and I noti...

0 Likes
0 Replies

Something wrong with this Elloquent Query... Help

Hi, I'm trying to run the following query but it's not returning anything ... any idea why? $comment...

0 Likes
7 Replies
Solved

eageer loaded->eager loaded model not in the object.

Hello everyone, In my database I have two tables: Users and Notes An User has many notes and every n...

0 Likes
4 Replies
Solved
posted 10 years ago

How to write this in Eloquent

I have a user's table for my application. I also have a pivot table for people who add other people...

0 Likes
2 Replies
posted 10 years ago

Displaying independent data in views

Hey guys! I'm completely new to Laravel but I really like it so far :) After playing around a bit, I...

0 Likes
1 Replies
Solved
posted 10 years ago

How to do aggregate on many-to-many relations in Laravel Eloquent?

I'm following http://laravel.com/docs/eloquent#many-to-many Of course, with difference case. How to...

0 Likes
0 Replies
posted 10 years ago

Deep relations

Hello everyone, I don't really know how to solve this in a 'proper' way, anything that I can come up...

0 Likes
1 Replies

custom login filter not redirecting to calling page

I picked up development of an orphaned project using SimpleSAMLphp for SSO, and I'm trying to finish...

0 Likes
1 Replies
Solved

using many to many primary id as foreign key

categories id, name products id, name products_categories id, product_id, category_id cards id, prod...

0 Likes
0 Replies

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

Delete relations/child relations without CASCADE

I have the following models (example!). When deleting a tutorial I'm expecting the 'deleted' method...

0 Likes
1 Replies

Max date issue solved

In case anyone else runs into a place where you need to bring table results and get the most recent...

0 Likes
0 Replies

Use DISTINCT on joined columns with Query builder

I've got two tables products and artifacts who are in a one-to-many-relationship to each other. Now...

0 Likes
1 Replies

eloquent auth driver users and admins in same table?

ok so I'm looking to create a system with users and admins, who will be separate. ideally i don't wa...

0 Likes
3 Replies

Any equivalent to CakePHP's saveAll?

I am coming to Laravel from CakePHP. In CakePHP I could save a model and related models using a sing...

0 Likes
3 Replies

specifying table in model is not working

Hi, i tried to set table in User model like this 'protected $table = 'users_account'; ' but its...

0 Likes
5 Replies

Join multiple HasManyThrough results

User id Role id Pemission id read update create delete Position id ###Relationships ####User...

0 Likes
1 Replies

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

Method that can be called both statically and non-statically

Hi, I wanted to create a method in the User model that behaves differently when called statically or...

0 Likes
0 Replies

Laravel Commenting System?

Hello! I am new using laravel framework. I want a simple commenting system to my application using l...

0 Likes
1 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.