Laravel erstellen Passwort Hash
$password = Hash::make('yourPa$$w0rd');
RaFiNhA90
$password = Hash::make('yourPa$$w0rd');
//pass your password to following function
bcrypt('12343');
//or use following method
use Illuminate\Support\Facades\Hash;
Hash::make('password');
$data = User::find($id);
if( ! Hash::check( $data->password , Input::get('currPassword') ) )
{
return Redirect::to('/admin/profile')
->with('message', 'Current Password Error !')
->withInput();
}
use Illuminate\Support\Facades\Hash;
$password = Input::get('passwordformfield'); // password is form field
$hashed = Hash::make($password);
$data = User::find($id);
if( ! Hash::check( Input::get('currPassword') , $data->password ) )
{
return Redirect::to('/admin/profile')
->with('message', 'Current Password Error !')
->withInput();
}