Support the ongoing development of Laravel.io →

4,311 Threads

Eloquent inner joins

I know that I can run this query and get the results that I want but I'm still learning Laravel and...

0 Likes
0 Replies

Laravel Cancel Option for an existing booking la

I need help adding Cancel Option for an existing booking, I have $service, booking_code, min_before_...

0 Likes
0 Replies

SQLServer and Laravel: Invalid Object Name error

I migrated my MySQL database to SQL Server 2019. I made the required configurations: php.ini extensi...

tchokouma liked this thread

1 Likes
1 Replies

Paginating an eager loaded relationship

This is a thought on old thread paginate-an-eager-loaded-relationship that I can't comment anymore,...

0 Likes
0 Replies

created_at, updated_at and deleted_at type fields do not res

Laravel Version: ^9.27 PHP Version: 8.1 Database Driver & Version: Postgresql 14.X Description...

0 Likes
2 Replies

HasOneThrough() Relationship Issue

I am having an issue with my hasOneThrough() relationship. When trying to eager load the relationshi...

0 Likes
5 Replies
Solved

WhereHas and has is not working with multiple database

config Laravel Version: 9.35.1 PHP Version: 8.0.3 Database Driver & Version: Mysql 5.7.12 issue...

0 Likes
1 Replies

multiple database connection in laravel

in my project I need to used multiple database. i create new connection in database.php and in env f...

0 Likes
3 Replies

m:n

Hey, iam pretty new in laravel and today i have the following problem and need your help: i created...

0 Likes
1 Replies

custom domain use for users in a sinle project

How to use custom domains in Laravel? How to give different domains to different users in a project?...

0 Likes
1 Replies

Eloquent query builder does not work correct for morph to re

Hi all. I'm using Constraining Eager Loads With Relationship Existence but getting unexpected result...

vanny2000 liked this thread

1 Likes
5 Replies
Solved

How to define eloquent relationship using parental package

I'm using parental package by caleb in my laravel project There i've two models: Intake, Trainee (wh...

0 Likes
0 Replies

Storing and Querying Schedules

Hello Everyone! I'm working on a multi-store system and I would need to store efficently working day...

0 Likes
1 Replies
Solved

Impossible relationship

Hi there, I've this strange situation in my application. These are the tables: property id - int...

0 Likes
0 Replies

Unable to create onetomany relation in dbeeee

I have one to many relation: Client: (a client can have many contrcts) public function contracts()...

0 Likes
0 Replies

Many to many nested models

Good day. I need help with nested models where all of them have many to many relationships. The ide...

0 Likes
3 Replies

What causes the failure to iterate a comments array?

I am working on a blogging application in Laravel 8. The ArticlesController controller I have this m...

0 Likes
1 Replies

How do I customize pagination items in Laravel?

I am working on a blogging application in Laravel 8. In the ArticlesController controller I have thi...

0 Likes
0 Replies

Laravel and Presto IntegrationLaraveldasdPresto

Hello, I'm working with Amazon Athena and it is based on Presto. I need a library that integrates La...

0 Likes
0 Replies

Laravel - MorphTo relation sometimes returns null

I have a polymorphic relationship between an Article model and 3 models (Company, Group & User)...

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