DEV Community

Krixnaas
Krixnaas

Posted on

Update all data without condition on Laravel

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

Top comments (0)