refactor: Update code to use str() instead of Str::of() for string manipulation

This commit is contained in:
Andras Bacsai committed 2024-06-25 10:37:10 +02:00
1 parent 1266810c4d
commit 2c92cc40e1
38 files changed
+101 -126

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ class InviteLink extends Component
if (is_null($user)) {
$password = Str::password();
$user = User::create([
'name' => Str::of($this->email)->before('@'),
'name' => str($this->email)->before('@'),
'email' => $this->email,
'password' => Hash::make($password),
'force_password_reset' => true,