status = !$model->status; $model->saveOrFail(); return redirect()->back(); } }