Update all data without condition on Laravel
Krixnaas

Krixnaas @krixnaas

About: Blockchain Enthusiast & Full Stack Developer <br/>Here, I collect all the goodies I can find while I learn as much as I can about web-development.

Location:
Australia
Joined:
Oct 9, 2021

Update all data without condition on Laravel

Publish Date: Nov 8 '22
5 0

$this->model->query()->update(['active_status' => 0]);
ModelName::query()->update(['active_status' => 0]);

Comments 0 total

    Add comment