Support the ongoing development of Laravel.io →

3,286 Threads

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 1 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 3 Replies

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

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

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

Is it good to save a model in a mutator?

Hi ! I am using Laravel 6. I have a question about the use of mutators in a model. Here a first exem...

0 Likes 0 Replies

only one product id not taking

hi all. I am noob in this laravel.wud appreciate some help .Only one product's id is showing null .b...

0 Likes 2 Replies

how best to merge two tables

I appologies if this is too simple, I'm still getting a good hang of laravel, I am trying to build a...

0 Likes 0 Replies

Auth()->user() -> magic vars not available inside scope clas

Closed - not solved - GH issue: https://github.com/laravel/framework/issues/42569 Laravel Version:...

0 Likes 0 Replies

Method [name] does not exist - Laravel 8

I'm having a problem with my Auth. So, I'm doing login but not using User models. I made my own mode...

0 Likes 1 Replies

Seeded users can't log in on Laravel or be found on Tinker

I'm working on a seeder that creates 3 users, one per each role I have on my app. When I run the see...

0 Likes 3 Replies

Laravel Eloquent , Pivot Table

Hello, i work on project about customer manager with an API. So, I have 4 Tables on my database : Ci...

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?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.