Support the ongoing development of Laravel.io →

4,313 Threads

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

Eloquent help with a belongsToMany relationship

Hey everyone, I'm trying to specify a belongsToMany relationship with a setup where with : Content -...

0 Likes
0 Replies

Aloglia PHP Laravel Scout : How do I search in multiple indi

How can I search in multiple indices in single API call ? currently we can search in single index va...

0 Likes
0 Replies

Algolia Scout Search in multiple indices in single API call

How can I search Algolia using Laravel/Scout in multiple indices in single API call using multiple q...

0 Likes
0 Replies

How laravel manages MySQL variables?

If I do DB::statement("SET @foo := 1;"); DB::select("SELECT @foo;"); I get the...

0 Likes
3 Replies

How to Splitting up nested Foreach Loop

I want to implement domain.com/section/slug format in my website.(currently it like - domain.com/sec...

0 Likes
1 Replies

Adding Cache wrapper for model

I am fairly new to Laravel and I have been trying to find the best way to create a cache wrapper for...

0 Likes
0 Replies

Select Query Posts with Likes ( Like Facebook )

Hello , I have a question , I am developing a website like a facebook . It will have POSTS and a Use...

0 Likes
0 Replies

Laravel 5.7: User-tables in other database

Hi, In my Laravel project, my users-table and password_resets-table are located in the database Inte...

0 Likes
2 Replies
Solved

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.