Support the ongoing development of Laravel.io →

4,312 Threads

Help converting SQL to Eloquent

I'm trying to convert an SQL Query to a relationship in Eloquent, and having great difficulty. This...

0 Likes
0 Replies

Problem to store data <input type="hidden" ......

This works when entering data to database in the form: <tr> <td>{{_('Longitude')}}&...

0 Likes
0 Replies

unable to fetch data from profile class using user class.

=> Illuminate\Database\Eloquent\Collection {#4087...

0 Likes
2 Replies
Solved

SASS app where to save each users data?

Hi all, I’ve recently been playing around with Larvel and building a sample project to try and wrap...

0 Likes
0 Replies

Custom scopes on many to many pivot table

I have a many to many relation between User and Task. The pivot table acts as an "Inbox" v...

0 Likes
0 Replies

Laravel 7.30.4 : BelongsToMany problem

Since I made the Laravel 7.30 .4 update, when I make an eloquent BelongsToMany request, the results...

0 Likes
0 Replies

Best table name

Simple question: which is the best table name (to use with eloquent) for a counter between authors a...

0 Likes
1 Replies

Laravel with Firebase

We had question for everyone who is using Laravel. What you think about using Google Firebase's Clou...

0 Likes
1 Replies
posted 3 years ago

Cast json column

Is there a way to cast a json column key? For example I have a payload json column and the payload h...

0 Likes
2 Replies

Can you please tell me how to write such queries ?

I have this $NUMBER = 496354; // vagprice::where('NUMBER', $NUMBER)->get(); // no results vag...

0 Likes
1 Replies

Bind parameter on DB::select(DB::raw())

Dear Sir, I have some weird about binding parameter using DB::select(DB::raw()). I had tried to use...

0 Likes
2 Replies
Solved

Preencher outros campos ao utilizar o select2

Bom dia meus caros Dev's. Em um projeto do dia-a-dia me deparei com a necessidade de buscar os dados...

0 Likes
0 Replies

whereYear with timezone

Good morning everyone, i have a small problem with the "whereYear" query. In the backend t...

0 Likes
1 Replies

Hasmany With Sum but Whats The Variable Name?

Invoices Model: public function items(){ return $this->hasMany('\App\InvoiceItems','invoice_id','...

0 Likes
0 Replies

Best practice model notifications choosing recipient

hi there, i would like to collect some recommendations here. i am facing something very common, i gu...

0 Likes
0 Replies

How to write product filter query in Laravel

Can someone please guide me on how I can write this below query in laravel by using eloquent ORM and...

0 Likes
0 Replies

i nedd help

Hello I am working on an application, I would have to save a photo ID but when I click on the save b...

0 Likes
0 Replies

Foreign key column vs belongsTo

VendorProduct belongsTo a single Vendor. To find or assign a Vendor to a VendorProduct, must the Ven...

0 Likes
0 Replies

get all numbers are not in use

Hello, i try to explain my Problem. I have 2 Tables in relationship shootingbooks and shootingranges...

0 Likes
1 Replies

Observers retrieved data overrides previous one while update

Laravel Version: 6.0 PHP Version:7.4 Database Driver & Version: MySQL Description: Observers ret...

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.