for now I've done it like this
$view = view('forms.register')->with($params); // will get $errors from message bag
if($shouldClearErrors) {
$view = $view->withErrors(null); // will null out $errors
}
return $view;
but would be grateful for any other suggestions
thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community