Skip to content

Commit 119c0fd

Browse files
authored
Update RegistersUsers.php
1 parent b383deb commit 119c0fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Traits/RegistersUsers.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use BeyondCode\EmailConfirmation\Events\Confirmed;
66
use Illuminate\Http\Request;
7+
use Illuminate\Support\Str;
78
use Illuminate\Auth\Events\Registered;
89

910
trait RegistersUsers
@@ -118,7 +119,7 @@ public function register(Request $request)
118119
protected function sendConfirmationToUser($user)
119120
{
120121
// Create the confirmation code
121-
$user->confirmation_code = str_random(25);
122+
$user->confirmation_code = Str::random(25);
122123
$user->save();
123124

124125
// Notify the user
@@ -136,4 +137,4 @@ protected function sendConfirmationToUser($user)
136137
protected function confirmed($user) {
137138
//
138139
}
139-
}
140+
}

0 commit comments

Comments
 (0)