Support the ongoing development of Laravel.io →

4,314 Threads

updating Carbon instance when saving Model triggers dirty flag

I am having problems with Laravel setting the dirty flag (isDirty getDirty) when I update a Model ev...

0 Likes
0 Replies
posted 9 years ago

Access Query Builder of Eager relationship

Hello Community! All code is prototype, so syntax might be not 100% correct. I have 3 models A,B and...

0 Likes
0 Replies

Laravel Eloquent - Using pivot table's id as a foreign key in another table

i have a table that's belong to few other tables , at the moment of add new recored into it need all...

0 Likes
0 Replies

Variables in Schema builder

Hi, is it possible to have variables in the Schema builder? $table->string('us_ico')->default(...

0 Likes
0 Replies

Namespacing Problems

I got 30 odd classes and code written in L4.2. Using eloquent extensively i have always used XyzMode...

0 Likes
1 Replies

Setting permissions to roles

Hi everyone! I'm a newbie in Laravel, and i'm right now i'm working on the Homestead vm using Larave...

0 Likes
1 Replies

Model to View as JSON to JQuery

I created a model and extracted data using the model from database via controller Like $data=datab...

0 Likes
1 Replies

Elasticquent - Error with function putMapping

Hello everyone, I use the extension fairholm/elasticquent. When I use the function putMapping, I hav...

0 Likes
0 Replies
posted 9 years ago

Help with eloquent orm out side of laravel.

I am using eloquent orm with codeigniter 3. Working perfect but problem is how to access errors like...

0 Likes
0 Replies
posted 9 years ago

Eloquent 1-n

hi, I try to do a very simple query without success. I have a table "societe" with field p...

0 Likes
3 Replies
Solved
posted 9 years ago

Extending ELoquent

I was tinkering around with larval, getting ready to build an API for Ember Js. In my models I exten...

0 Likes
0 Replies

All Your Design Patterns Are Belong To Us

One team I'm on right now is in the process of building a massive application on Laravel. As we've a...

0 Likes
0 Replies

How to detach a single record in a pivot table

I currently have a pivot table (users_toys) joining a users table and toys table. There are 4 column...

0 Likes
6 Replies
posted 9 years ago

Get properties of related models

I've a user model which has a 1:1 relation with a UserInfo model class User extends Model implements...

0 Likes
0 Replies
posted 9 years ago

substring inside query

how to do substring inside query if the name are kevin_001 User::where(substr('name', 0, strpos('nam...

0 Likes
1 Replies

Laravel 5.1 lists() inconsistency? (Eloquent vs Query Builder)

I'm in the process of upgrading to 5.1 and I'm really liking the changes that have been made, and th...

0 Likes
1 Replies

Laravel 4.2 Model not being loaded

I have been using Laravel for a couple of years now and whenever I have created a model it gets auto...

0 Likes
2 Replies
posted 9 years ago

Convert raw SQL using WhereIn to Eloquent

Hi all! Hope you can help me converting this raw sql because the converted one I have is not working...

0 Likes
0 Replies

Save MSSQL Binary Type Data using Eloquent

Sorry if this has already been addressed, but I didn't find anything by searching Binary Data on the...

0 Likes
0 Replies

Using Auth on a different connection or database.

I'm very new to Laravel and am currently building a multi-tenant app. Basically when anyone signs up...

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.