aha, ok thisd kind of works

This commit is contained in:
slong753 2023-05-02 19:11:43 -05:00
parent b2c2097e8b
commit cdda4a56d8

View file

@ -233,12 +233,12 @@ class BulkAssetsController extends Controller
if(!empty($error_bag)) {
$ids = array_values($assets);
// dd($ids);
return redirect()->back()
->withInput(["ids" => $ids, "bulk_actions" => "edit"])
->withErrors($error_bag);
// return redirect()->back()
// ->withInput(["ids" => $ids, "bulk_actions" => "edit"])
// ->with('error_messages', $error_bag);
// return $error_bag;
// return redirect($bulk_back_url)->withErrors($error_bag);
return redirect($bulk_back_url)->with('error_messages', $error_bag);
}
return redirect($bulk_back_url)->with('success', trans('admin/hardware/message.update.success'));
}