Support the ongoing development of Laravel.io →

4,314 Threads

Better Way to Associate foreign keys ?

Is there any better way to associate foreign keys with a record. This way is making my controller bu...

0 Likes
0 Replies

Connect Laravel with Marklogic

How to use marklogic super awesome document structuring and lightning fast search mechanism with lar...

0 Likes
0 Replies

Override vendor class on using custom model

Can someone help me to override a method from vendor using my custom class. vendor name: Cmgmyr\Mess...

0 Likes
0 Replies

a complicated query by laravel eloquent orm

projects id, name projects_services(1 project_id <-> M service_id) project_id, service_id serv...

0 Likes
0 Replies

How Do I Catch FindOrFail Exceptions? Or How Do I Detect an Empty Eloquent Result?

My goal isn't all that lofty. I want to detect when the following: $current = Promovote::where('mod...

0 Likes
3 Replies

Query to inculde belongsTo Model

What is the correct way to grab a record and also include it's relationship data? Example User belon...

0 Likes
1 Replies
Solved

Query progress

Hello, I am looking for any method for progession rate generation during the execution of the query....

0 Likes
3 Replies

Dealing with Huge database

I am having a huge database with millions of records in different tables. It all works fine when I a...

0 Likes
0 Replies

Delete on update

This tables are just for example. Let's say we have two tables: order_items(id int, name string, pri...

0 Likes
0 Replies

Adding custom data to model from table using traits

I have my user model and I have a custom composer package I am working on which creates a custom tab...

0 Likes
0 Replies

[Help] I need help about a relation [Many To Many]

Hello. Im trying to make a website for trades. Every user will post items that he have for items tha...

0 Likes
10 Replies
Solved

Laravel hasMany get one children

Hello guys, i have hasMany relationship between two tables like this: Parameter::where('property_id'...

0 Likes
1 Replies

Complex Queries

I need help with 2 queries. 1 First I am trying to get all Posts for a specific Category, I have a c...

0 Likes
1 Replies
posted 9 years ago

Eloquent - Static/Caching Issue?

I'm new to Laravel, and I'm loving the framework more and more everyday. I've only had one issue, an...

0 Likes
3 Replies

Can't retrieve all values from specific column

How to do with Laravel 5.1 Eloquent to get this: "SELECT cont FROM news" ?

0 Likes
1 Replies
Solved

Related models: First build object hierarchy then save everything in one go

At the moment I am writing a parser for exam result files. There are 3 model classes: Exam, Question...

0 Likes
0 Replies

Revove data after find

I am building a back-end API with Laravel and need some help with a problem. Example I grab all my P...

0 Likes
3 Replies

Extract from array

I am currently converting a Cake app to laravel but ran into a problem and can't seem to find a solu...

0 Likes
0 Replies

Eloquent vs. Raw SQL? Which is really better?

Hello guys, I know this question sounds kind of silly, but let me explain. I (mostly frontend-dev) a...

0 Likes
4 Replies

Random code execution stops when using Eloquent chunk()

I have a method for a scheduled system cleanup that goes through all the files in the "storage&...

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