“Konfirmasi validasi kata sandi di Laravel” Kode Jawaban

Laravel 8 Validasi Konfirmasi Kata Sandi

// password field like this
<input type="password" name="password"/>
  // matching field like this
//{field}_confirmation
  <input type="password" name="password_confirmation"/>
  //validation rule
  'password' => 'required|min:6|max:25|confirmed',
Dev Arman

Kata sandi cocok dengan Laravel

1. $user = User::where('email', request('email'))->first();
2. Hash::check(request('password'), $user->password);

This will return true or false based on whether or not the password matches.
Lokesh003

Konfirmasikan validasi kata sandi laravel

'password' => 'required|confirmed',

reference : https://laravel.com/docs/4.2/validation#rule-confirmed

The field under validation must have a matching field of foo_confirmation. 
For example, if the field under validation is password, a matching
password_confirmation field must be present in the input.
Lokesh003

Konfirmasi validasi kata sandi di Laravel

$this->validate($request, [
    'name' => 'required|min:3|max:50',
    'email' => 'email',
    'vat_number' => 'max:13',
    'password' => 'required|confirmed|min:6',
]);
Super Starling

Kata Sandi Laravel

$this->validate($request, [
    'name' => 'required|min:3|max:50',
    'email' => 'email',
    'vat_number' => 'max:13',
    'password' => 'required|confirmed|min:6',
]);
Brave Butterfly

Route::get(...)->middleware('password.confirm');
NachooCh

Jawaban yang mirip dengan “Konfirmasi validasi kata sandi di Laravel”

Pertanyaan yang mirip dengan “Konfirmasi validasi kata sandi di Laravel”

Lebih banyak jawaban terkait untuk “Konfirmasi validasi kata sandi di Laravel” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya