Support the ongoing development of Laravel.io →

4,311 Threads

I don't know filters on Collections

Hi, guys. I have 2 connections to databases with this configuration: /app/config/database.php 'princ...

0 Likes
0 Replies
posted 9 years ago

Looping Through Eloquent Results

Hi there, I have an eloquent query that is returning a 'show', and any 'show_ref's relating to it: S...

0 Likes
2 Replies
Solved

Is there a difference in Eloquent between hasOne & belongsTo when both keys are given?

If I fully specify the keys, is there a difference between hasOne and belongsTo relationships? Or if...

0 Likes
0 Replies

ErrorException (E_UNKNOWN) Undefined variable: products (View: ........

Hello, I am very new to laravel and this error has held me back for the past three hours ErrorExcept...

0 Likes
2 Replies

delete/alter data in model relationships

Hi, If I have something like this: $user = User::with('phones')->find(1); It gives me the user's...

0 Likes
1 Replies

Aggregate, Aggregate Roots and Repositories managent with Laravel

Hi, I was working with some Entities that may contain some other dependent Entities or Value Objects...

0 Likes
0 Replies

Eloquent hasManyThrough relation and with a little customization.

Parent, Child and Tag are three models. Parent (id, other fileds ....) Child (id, parent_id, tag_id...

0 Likes
1 Replies
posted 9 years ago

Getting related model based on parent model.

Hi I want to search for like which is made by a given user on a given post. I have one Post model as...

0 Likes
1 Replies

find($id) and whereId($id)

What is the diference between find($id) and whereId($id)?

0 Likes
1 Replies
Solved

Two functions in one

Trying to get my head around the logic for the following. I have 3 images and two static functions....

0 Likes
1 Replies
posted 9 years ago

use mass assignment?

Hi, do you people advice to use mass assignment? I used it but i see i need to solve al lot of probl...

0 Likes
1 Replies

data doesn't deleted (ondelete in foreign key)

hi , i have a problem in my project so , when i delete my user his topics doesn't deleted ! and ther...

0 Likes
2 Replies
posted 9 years ago

Setting up relationships for lookup tables

I have a model that will contain information about a patient, the database migration for that table...

0 Likes
0 Replies

How to get the values of a foreign key table

Hi I'm trying to get the values of a table that references 2 tables. my tables looks like this pages...

0 Likes
0 Replies

Problem with hasmany relathionship

Hi, I am working on my first application. I created two database tables: "leads" and "...

0 Likes
4 Replies
posted 9 years ago

complex model. How can I implement this the best

Hello, For a toy library I try to make a financial app. We have volunteers which can log in and cust...

0 Likes
4 Replies

Advanced Data Base queries and Eloquent

Hi All, I've been developing a laravel application the last couple months and it's my first ride wit...

0 Likes
6 Replies
posted 10 years ago

Query for three columns in row

Hello, Can anyone please tell me how I can query my table for an email, username and another column...

0 Likes
1 Replies
Solved

Postgres Database Error: Eloquent/Fluent Query where boolean value is true/false

I am getting the following error when I run an eloquent query: ERROR: operator does not exist: bool...

0 Likes
1 Replies
Solved

Ajax database record creation not working!

I have been facing problem for creating a database record using ajax! When i press create event, not...

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