We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.1.16
Herd
Windows
Getting this error...
$attributes = $request->validate([ 'name' => 'required', 'mobile' => 'required|integer|digits:10', 'pincode' => 'required|integer|digits:6', 'address' => 'required', 'town' => 'required', 'city' => 'required', 'state' => 'required', 'isDefault' => 'nullable|boolean', ]); try { $this->db::beginTransaction(); if ($request->isDefault) { $this->addressModel::where('userId', auth()->id())->update(['isDefault' => false]); } $address = $this->addressModel::create([ 'userId' => auth()->id(), ...$attributes, ]); $this->db::commit(); return sendRes($address->toArray(), 'Address has been saved successfully.'); } catch (Exception) { $this->db::rollBack(); return sendErrRes(); }
The text was updated successfully, but these errors were encountered:
@abhinav-pageup this is a duplicate of #8
Sorry, something went wrong.
joetannenbaum
No branches or pull requests
Extension Version
0.1.16
PHP Binary
Herd
Operating System
Windows
What happened?
Getting this error...
Mimimal Code Sample
The text was updated successfully, but these errors were encountered: