Support the ongoing development of Laravel.io →
Eloquent
Last updated 3 weeks ago.
0
$account = \MyProject\Models\Account::with(['user' => function($query){
     $query->where('id', "=", $this->user->id);
}])->decrement('ruby', $value);
Last updated 6 years ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

xscence xscence xscence Joined 22 Aug 2014

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.