We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b383deb commit 119c0fdCopy full SHA for 119c0fd
src/Traits/RegistersUsers.php
@@ -4,6 +4,7 @@
4
5
use BeyondCode\EmailConfirmation\Events\Confirmed;
6
use Illuminate\Http\Request;
7
+use Illuminate\Support\Str;
8
use Illuminate\Auth\Events\Registered;
9
10
trait RegistersUsers
@@ -118,7 +119,7 @@ public function register(Request $request)
118
119
protected function sendConfirmationToUser($user)
120
{
121
// Create the confirmation code
- $user->confirmation_code = str_random(25);
122
+ $user->confirmation_code = Str::random(25);
123
$user->save();
124
125
// Notify the user
@@ -136,4 +137,4 @@ protected function sendConfirmationToUser($user)
136
137
protected function confirmed($user) {
138
//
139
}
-}
140
+}
0 commit comments