Support the ongoing development of Laravel.io →

4,314 Threads

Count position a comment on post

I have table in database Posts - id - content - parrent_id all posts will insert this table and all...

0 Likes
7 Replies
Solved

Eloquent, Where across one-to-many

I have a simple one-to-many relationship, like order to line items. I'm building a search form where...

0 Likes
1 Replies

Relationship Confusion

I might be missing the point of Relationships with Eloquent with this one but, if I was doing it wit...

0 Likes
4 Replies

Laravel 5: one form to update 2 linked tables. How to?

Hi, I have the 2 simple tables below: CUSTOMERS id email CLAIMS id customer_id (foreign key) descri...

0 Likes
3 Replies

Laravel ignores User table

I have a fresh install of Laravel 5 running on WAMP. So far everything is working well as far as rou...

0 Likes
4 Replies
Solved

bloated Laravel controller, am i over doing it?

greetings, as naive as i feel, i wanna create a thread about my controller. this controller manages...

0 Likes
2 Replies

Query: Top 10 products?

Hi, I can't figure out how to filter my top products from the DB. I'm searching for an Eloquent way...

0 Likes
3 Replies

Laravel 4 -Call to undefined method

hi everybody. I have function scopeClubBlog at model. But It not working when set namespace. I th...

0 Likes
4 Replies
Solved
posted 10 years ago

Error using Eloquent in tinker

When ever i try to create a new Eloquent object via tinker, i keep facing this error. Is there a wa...

0 Likes
1 Replies

Inserting JSON into $table

I having difficulties with taking an array of data and inserting it into my table. I know Im missing...

0 Likes
4 Replies

Update the data in table

As the title says, I have some data. I am trying to update it just using updateOrCreate() method but...

0 Likes
0 Replies

How to model redundant information?

I have been racking my brain to figure out the most 'eloquent' solution to this problem. Perhaps you...

0 Likes
2 Replies
Solved

Can anybody clarify how eager loading works?

I am trying to implement my own Achievements system that assigns Titles to Users. The TItles are awa...

0 Likes
2 Replies

Eloquent float values be rounded

Hey, I have an existing database with float(10,2) fields in some tables. When I return Model::first(...

0 Likes
24 Replies

Eloquence - a must have package for eloquent

Do you use Eloquent in your apps? It's simply fun to work with, right? I think the same, but after s...

0 Likes
3 Replies

Cannot initialize a class from external library

Hello guys, Im a newbee with laravel and php and i am having a huge problem that might be really sim...

0 Likes
10 Replies
posted 10 years ago

Get isert id after in user table

Hello , I have a problem using the get function id ( $ user- > id ) . This function instead of in...

0 Likes
1 Replies

Help with Eloquent query with relations

Hello, I am getting Unknown column 'categories.slug' What am I doing wrong in L5? Thanks [code] $pro...

0 Likes
6 Replies

Self referencing polymorphic relationship

So just wondering if this is possible (or even smart) before I dive in too quickly. I have three mod...

0 Likes
0 Replies

Model relations in an inheritance hierarchy

Hello guys! I am building an application and I have these models: User, Announcement, BookAnnounceme...

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.