|
@@ -13,6 +13,7 @@ use Illuminate\Support\Facades\Hash; |
|
|
use Illuminate\Support\Facades\URL; |
|
|
use Illuminate\Support\Facades\URL; |
|
|
use Illuminate\Auth\Events\Registered; |
|
|
use Illuminate\Auth\Events\Registered; |
|
|
use Illuminate\Support\Facades\Password; |
|
|
use Illuminate\Support\Facades\Password; |
|
|
|
|
|
use Illuminate\Validation\Rules\Password as Pass; |
|
|
use Illuminate\Support\Facades\Auth; |
|
|
use Illuminate\Support\Facades\Auth; |
|
|
use Illuminate\Notifications\Messages\MailMessage; |
|
|
use Illuminate\Notifications\Messages\MailMessage; |
|
|
use Mail; |
|
|
use Mail; |
|
@@ -27,7 +28,7 @@ class UserController extends Controller |
|
|
'name' => 'required|max:30', |
|
|
'name' => 'required|max:30', |
|
|
'email' => 'required|email|unique:users|max:255', |
|
|
'email' => 'required|email|unique:users|max:255', |
|
|
'password' => ['required', 'confirmed', |
|
|
'password' => ['required', 'confirmed', |
|
|
Password::min(8) |
|
|
|
|
|
|
|
|
Pass::min(8) |
|
|
->letters() |
|
|
->letters() |
|
|
->mixedCase() |
|
|
->mixedCase() |
|
|
->numbers() |
|
|
->numbers() |
|
|