use IlluminateSupportFacadesHash; $hashed = Hash::make('password', [ 'memory' => 1024, 'time' => 2, 'threads' => 2, ]);