Support the ongoing development of Laravel.io →

4,606 Threads

Question about Eloquent relations

Hi all! Tell me please what should I do if I have a task like this: I have a chatboard with messages...

0 Likes
1 Replies
Solved

New package Laravel 5 pending migration advisor

Hello, Laravel pending migration advisor package has been updated to laravel 5. https://github.com/...

0 Likes
0 Replies

Scrutinizer marks Eloquent save() as wrong

I'm trying to use Eloquent in one of my project works very fine. But the scrutinizer-ci tool marks t...

0 Likes
2 Replies

Analogue ORM - an 'Eloquent-like' Data Mapper

In a personnal attempt to resolve the 'Repository Pattern Dilemna' that has been a huge debate in th...

0 Likes
2 Replies
posted 10 years ago

FatalErrorException in Connection.php line 296

This is what I'm doing: public function movimiento_contable_all( Certificado_de_pagos $request )...

0 Likes
0 Replies

Doing something to a value that is in db, before querying it.

Now I have a filter that works something like this: $property = new Property(); if($data['type']) {...

0 Likes
6 Replies

Saving models (serialize)

Hi, sometimes I fetch Models from the db and I'd like to make them available in further requests. Ho...

0 Likes
6 Replies
posted 10 years ago

Possible un-intended behaviour on eager loading with nested array

I have the following block of code: $agents = Agent::with('territories') ->or...

0 Likes
0 Replies

Add extra value to query in Laravel 5

Hi, in my database i have a column "extra_data" which i have to fill after a form submit....

0 Likes
4 Replies
Solved

Is this a bug or am I just doing it wrong?

$owner = Owner::with('cars.carParts')->where('id', "=", $ownerID)->first(); $owner-...

0 Likes
6 Replies

Relationship returns NULL.

Hello guys, I have a problem with relationships...I set everything up but my relationship returns NU...

0 Likes
3 Replies
Solved

created_at and updated_at values not set when seeding from csv

I am using this code to seed my table from a csv file, the table was created with migration and has...

0 Likes
5 Replies
Solved
posted 10 years ago

future dating isn't working

I am following laracasts tutorial and I'm at the video where he is future dating articles. but it's...

0 Likes
3 Replies

Getting SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

Hello, I am trying to open a project that was originally created using homestead, while I am not usi...

0 Likes
2 Replies

Save Collection to database

I feel like this might be a stupid question, and one that shouldn't allude me. I've done some searc...

0 Likes
2 Replies
Solved

all of a sudden published_at column is all zeros

I'm at the 11th video in Laracasts and all of a sudden my app starts acting up. The published_at col...

0 Likes
0 Replies

Many to Many relation issue

Hi guys. I have 3 tables. user, theme and theme_user. Its because I need a many to many relationship...

0 Likes
5 Replies
posted 10 years ago

jQuery AJAX drag and drop sorting

Hi all, i need to create a drag and drop sorting with jQuery Ajax. Once i drop an element, i do an a...

0 Likes
2 Replies

[Package] Larasearch: elasticsearch enabled models

This is a package to inject Elasticsearch functionality directly into Eloquent models. I've tried to...

0 Likes
2 Replies

iOC resolving

HI, Ive got a system that Im building for a advertising company and they sell advertising a Medical...

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.

© 2025 Laravel.io - All rights reserved.