I was wondering if it was possible to update/save a model with the validator data? I've tried googling and can't seem to find anything.
I'm just trying to do something like this
$validator = Validator::make(request()->all(), [
'first_name' => ['required', 'string', 'max:255'],
'last_name' => ['required', 'string', 'max:255'],
'address_line_1' => ['required', 'string', 'max:255'],
'address_line_2' => ['required', 'string', 'max:255'],
'postcode' => ['required', 'string', 'max:255'],
'city' => ['required', 'string', 'max:255'],
'county' => ['required', 'string', 'max:255'],
]);
$address = $validator->getData();
$address->save();
rather then having to set all the variables one by one and then saving?