DEV Community

Krixnaas
Krixnaas

Posted on

3

Update all data without condition on Laravel

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

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs