Answers for "laravel relationship update with where clause"

PHP
2

laravel model wherein update

Question::whereIn('id', $request)
            ->update(
                [
                    'status' => 1
                ]
            );
Posted by: Guest on November-29-2021
0

laravel update all relations

$position->users()->update(['position_id' => 4]);
Posted by: Guest on June-25-2020

Code answers related to "laravel relationship update with where clause"

Browse Popular Code Answers by Language