Support the ongoing development of Laravel.io →

3,314 Threads

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

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

Looking for best way to autoload observers from my package

Hello! crap, title with lenght restriction. full question is "Looking for best way to autoload...

0 Likes
1 Replies

Get rows only if relation exists (Laravel Nova)

Hi I am trying to make a filter in laravel nova that allows me to select items that have a relation....

0 Likes
1 Replies
posted 4 years ago

how can I multiply in the same table 2 column?

Hi, I'm a newbie, how can I multiply in the same table 2 column? Example: I want to perform the oper...

0 Likes
2 Replies

Laravel Eloquent Route Problems When Editing via PUT

Gentlemen, I have had a problem for days, without getting a solution. I try to pass the route, but a...

0 Likes
3 Replies

Weird eloquent bindings when using addSelect method.

Laravel Version: 7.13.0 PHP Version: 7.4.6 Database Driver & Version: Mysql & 8.0.20 Descr...

0 Likes
0 Replies

Call to undefined method App\UserPackage::get05Attribute()

I am trying to use $appends laravel feature see Docs to add a custom attribute to my Model instance....

0 Likes
0 Replies
posted 3 years ago

Using static data source for a Model instead of DB

I need to replace a classic DB connection for a Model with a Json static file. I can easily open the...

seob-1 liked this thread

1 Likes
0 Replies

Try to get some data from an object

Hello everybody, I have this SQL Query : ->select('herbs.name as hname', 'herbs.scina...

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.