Support the ongoing development of Laravel.io →

4,310 Threads

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

Defining Two Relationships Between Models

I'm learning Laravel, and really OOP in general. I've followed several YouTube tutorial series, that...

0 Likes
0 Replies

Create new database and tables on the fly

Hi everybody. I want create dynamically new database, database user with privileges, tables in new d...

0 Likes
8 Replies

Renaming the pivot table Columns .

i have many to many relation in my database and i can't change the default name of the pivot table C...

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.

© 2024 Laravel.io - All rights reserved.