Support the ongoing development of Laravel.io →

4,301 Threads

Need to define condition if/else via model

If we use basic select like: Products::paginate(6); it return us:-> [ id: 1, product name: 'test'...

0 Likes
3 Replies

Query Builder Sql timeout

Hi, I have one big problem with query. I have a SQL that extracts approximately 20 records from a DB...

0 Likes
1 Replies

Laravel Eloquent - Repetitive IDs in the IN clause when eage

Environnment OS: Windows 11 - WSL2 (Ubuntu 20.04) PHP: 8.1 Stack: Laravel 9.22 | InertiaJS | Vue3 Da...

0 Likes
1 Replies
Solved
posted 1 year ago

How can I get a model and all of its foreign?

Hello, I have the following models: Member Address (belongs to a member) Phone (belongs to a member...

syq246 liked this thread

1 Likes
2 Replies
Solved

Ho can i store associative array value to DB?

$authid = Auth::user()->id; $tblAptServices = $request->except('userName', 'userEmail', 'u...

0 Likes
1 Replies

Visual data modeling tools?

Hi All, pretty new to Laravel, looks pretty neat so far, but I was wondering if there are any openso...

0 Likes
0 Replies
posted 1 year ago

Get value of related table

Hi ,sorry for english , i have a table sAdmin related with user table by id_users , in User model i...

0 Likes
1 Replies

Laravel count 3 tickets per time and display ticket number,

I have already opened a discussion where I received help for some problems I had, now I would like t...

0 Likes
0 Replies

Boolean Value Not Updating Back To Zero

I am having a weird issue where a boolean value is never updating back to false or 0. Its for an ope...

0 Likes
2 Replies

Ordering results by pivot table property

Hello, I have been trying to order the results based on a pivot table property but I only got colum...

0 Likes
0 Replies

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

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.