Checkout: minimize registration data
This commit is contained in:
@@ -82,12 +82,12 @@ class CheckoutController extends Controller
|
||||
// User erstellen
|
||||
$user = User::create([
|
||||
'email' => $validated['email'],
|
||||
'username' => $validated['username'],
|
||||
'username' => Str::lower($validated['email']),
|
||||
'first_name' => $validated['first_name'],
|
||||
'last_name' => $validated['last_name'],
|
||||
'name' => trim($validated['first_name'].' '.$validated['last_name']),
|
||||
'address' => $validated['address'],
|
||||
'phone' => $validated['phone'],
|
||||
'address' => $validated['address'] ?? null,
|
||||
'phone' => $validated['phone'] ?? null,
|
||||
'preferred_locale' => $validated['locale'] ?? null,
|
||||
'role' => 'user',
|
||||
'password' => Hash::make($validated['password']),
|
||||
|
||||
Reference in New Issue
Block a user