Support the ongoing development of Laravel.io →

4,302 Threads

MyClas::insert($data) not calling ORM save event?

we are trying to log the changes made to the models via ORM laravel 5. There are default events whic...

0 Likes
0 Replies

Custom Intermediate Table Models

https://laravel.com/docs/5.8/eloquent-relationships#defining-custom-intermediate-table-models Why wo...

0 Likes
1 Replies

I think Athena would be cool too.

https://laravel.io/forum/anyone-using-athena-with-laravel-5 I couldn't find reply button on this thr...

0 Likes
0 Replies

Undefined offset: 0

Controller: $indirizzo = DB::table('indirizzoimpiantos')->where('id_impianto', $dettagliimpianto[...

0 Likes
1 Replies

Eloquent result different from MySQL result

Hi all. I have 3 tables in Laravel: doctors, clinics and clinic_doctors. Doctors have relation: publ...

0 Likes
1 Replies
Solved

Connection Timeout while retrieve data using REST API

Hi all. I just deploy my laravel app using docker container on my GCP instance. I can run the migrat...

0 Likes
0 Replies

Model split response on column true.

I have a query that I was previously calling with Quote::with(['detail.orders'])->findOrFail($id)...

0 Likes
1 Replies

Make Route Model Binding for Video (Working)

Hello , I'd hoped you could help me make what I already have a little cleaner. The goal: Show a Vide...

0 Likes
1 Replies

Eloquent not checking if int. records are soft deleted

Hi everybody! My team and I wanted to know if this is the normal way Eloquent relationships handle s...

0 Likes
0 Replies

How to get query pivot table without getting any data?

Hello I am working on an ecommerce application. I have following models: Product, Attribute, Product...

0 Likes
0 Replies

Using Model Query in Laravel: Schedule

wanted to create dynamic scheduling jobs so I have used model in Kernel.php like below protected fun...

0 Likes
1 Replies

package for manage user/person details

Hi all, I'm new here, I created a package (currently empty) because I would like to manage extra dat...

0 Likes
0 Replies

'orWhere' not work eloquent model relationship

Laravel Version: 5.7.25 PHP Version: 7.2.14 Database Driver & Version: MySQL 2ª gen. 5.7 We ar...

0 Likes
1 Replies
Solved

Out of memory on model save()

PHP throws me Allowed memory size of 536870912 bytes exhausted (tried to allocate 365815888 bytes) i...

0 Likes
0 Replies
posted 5 years ago

Laravel Eloquent Nested Relationship group by

I have three models Spot, DealItem and Daypart each has its own relationships class Spot extends Mod...

0 Likes
0 Replies

Eloquent relationships and how to think them

Hello, This is gonna be a long read..... I have a really hard time figuring this out. I will provide...

0 Likes
0 Replies

Relations between 3 tables in Laravel 5.7

I have three tables : PLAYERS with a team_id TEAMS SCORES with a player_id The thing is : My team...

0 Likes
0 Replies

Querying polymorphc relation using eloquent builder instance

I am stuck at the fee search filter part in my web app. My setup of polymorphic table is, Models: Fe...

0 Likes
0 Replies

Help with intermediary relationships.

Hi, I have a question related to Laravel and database. I have a PEOPLE table and other POSITIONS, so...

0 Likes
1 Replies

Database Architecture Suggestion

Hello, I need suggestions for database architecture. I am going to build SaaS application for Compan...

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