This commit is contained in:
Ludovic CANDELLIER
2022-12-22 01:09:11 +01:00
parent 5151f393be
commit 0feebca7e0
25 changed files with 298 additions and 195 deletions

View File

@@ -14,4 +14,18 @@ class CustomerController extends Controller
$data = Customers::editProfile($id);
return view('Shop.Customers.profile', $data);
}
public function modalProfile($id = false)
{
$data['old'] = Customers::get($id);
return view('Shop.Customers.partials.registration', $data);
}
public function storeProfileAjax(Request $request)
{
$data = $request->all();
$customer = Customers::store($data);
return response()->json(['error' => 0]);
}
}