fix:trim whitespace from form fields

This commit is contained in:
hackerESQ
2024-10-29 12:38:05 -05:00
parent 07ebdaf77f
commit 863627bb42
4 changed files with 40 additions and 5 deletions
+8 -1
View File
@@ -3,14 +3,21 @@
namespace App\Actions\Fortify;
use App\Models\User;
use App\Traits\WithTrimStrings;
use Laravel\Jetstream\Jetstream;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\CreatesNewUsers;
use Laravel\Jetstream\Jetstream;
class CreateNewUser implements CreatesNewUsers
{
use PasswordValidationRules;
use WithTrimStrings;
public function trimExceptions()
{
return ['password'];
}
/**
* Validate and create a newly registered user.