Support the ongoing development of Laravel.io →

4,311 Threads

Update without touching timestamps?

I've created a type of forum which is sorted by "updated_at", but right now every page vie...

0 Likes
7 Replies

Undefined offest:0

I keep getting this error here $regionID = $destinationQuery[0]->RegionID; It is when u'm trying...

0 Likes
0 Replies

Eloquent does not alias tables in a self join relationship

I have an parent->child relationship where a confirmed column in the pivot table exists. Both the...

0 Likes
3 Replies

Authentication many to many laravel and slug

I am new in laravel 4 In my app every user my have many blog which store in in table in database Blo...

0 Likes
0 Replies

Grouping eloquent results via a distant relation

I'm building a football site, and have a problem with listing all the games the way i want. Basicall...

0 Likes
1 Replies

[ELOQUENT] belongsTo() not returning relationships

Hello everyone! I have the following models. Product.php class Product extends Eloquent { protected...

0 Likes
4 Replies
Solved

Need small help In Updating record.

Hello Experts, I need small help regarding to updating profile information. im trying to update prof...

0 Likes
1 Replies
Solved

LARAVEL4 - chunk function not working with model save().

I am doing this for hashing all the passwords from previous project which was in pure PHP and rewrit...

0 Likes
0 Replies

Polymorphic association SQLSTATE[42S22]: Column not found

Hello, I'am getting error when I'm using polymorphic relation. class User extends \Eloquent { pu...

0 Likes
0 Replies

Saving in a pivot table

When I try to save data into a pivot table I get this error. SQLSTATE[23000]: Integrity constraint v...

0 Likes
20 Replies

how to send value for options in dropdown list from array

Hello, how to send value for options in dropdown list from array, or how to convert output this code...

0 Likes
4 Replies
Solved

Method naming convention for eloquent relationships.

I am confused with naming conventions for methods in model relationships.. If I use Camel case, the...

0 Likes
1 Replies
posted 9 years ago

Laravel 5 Eloquent leftJoin on belongsTo relation

I have two database tables: users and students. A student is a user, but has extra data (address). I...

0 Likes
1 Replies
posted 9 years ago

How to eager load constraint on data from main model in the constraint?

Is there a way to reference the base model i'm query against? $person doesn't exist yet because i'm...

0 Likes
1 Replies

Search in laravel 4 issues.

i am writing my app and i have this issues with the search field from the search controller. the sea...

0 Likes
1 Replies

Problem with relations in Eloquent in Laravel 5.0

I am new to Laravel but started from Laravel 5.0. I got 2 tables: Doctors class CreateDoctor...

0 Likes
3 Replies
Solved

New to Laravel - Correct way of working

Hi, Bit of background - I have a PHP project, it works ok at the moment. One problem is that its me...

0 Likes
2 Replies

Call to undefined method Illuminate\Database\Query\Builder::groups()

I am creating a website that helps users build config files for different applications. How ever, I...

0 Likes
1 Replies

Calling PgSQL function before accessing a Eloquent object property

Hi, I'm using PostgreSQL + PostGIS and I need to call ST_AsText(geom) function when I access a prope...

0 Likes
0 Replies

belongsToMany relationsship on custom pivot model

Hi! I'm facing a problem with a belongsToMany relationsship on a custom pivot model I cannot solve....

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.