Skip to content

Releases: JackNoordhuis/laravel-database-hashing

v2.0.0

03 Mar 09:05
266d04b
Compare
Choose a tag to compare

Intro

This is the second major release of this package. You should have no problems upgrading to this version if you weren't manually hashing data (only used the automatic functionality).

Changes

Testing!

The one big change to this package that most users will be happy to hear is that most of the functionality that I expect from the package is now tested with phpunit! When a new commit is made to the repository we have the tests run for Laravel version 5.5, 5.6, 5.7 and now 5.8 and EACH of these versions are tested on both PHP 7.2 AND 7.3 (8 total environments).

If there is some functionality you see is currently untested that you believe should be, feel free to open a pull request or open an issue to discuss it.

HasHashedAttributes trait

The hashAttribute() method no longer accepts any old string, you have to pass the name of an attribute to hash. If you were using this method for creating a hash you will have to either switch to using the facade for any old string or set the attribute before calling the hashAttribute() method.

New example usage:

$user->email_lookup = $request->get('email');
$user->hashAttribute('email_lookup');

HashingFacade (DatabaseHashing)

The DatabaseHashing facade has had some unneeded methods removed: getInstance() and version(). The salt() getter method can now return null if the hashing functionality is disabled.

README

The packages main readme file has basically been rewritten with better wording, some more examples and just generally more up-to-date information.

Installation

Install via command line:

$ composer require jacknoordhuis/laravel-database-hashing ^2.0

Or add the package to your composer.json:

{
    "require": {
        "jacknoordhuis/laravel-database-hashing": "^2.0"
    }
}

v1.0.1

03 Mar 03:10
45193ad
Compare
Choose a tag to compare

This release adds support for the latest Laravel 5.8 releases.

Install via command line:

$ composer require jacknoordhuis/laravel-database-hashing 1.0.*

Or add the package to your composer.json:

{
    "require": {
        "jacknoordhuis/laravel-database-hashing": "1.0.*"
    }
}

First release!

06 Nov 03:04
b09e727
Compare
Choose a tag to compare

Via command line:

$ composer require jacknoordhuis/laravel-database-hashing 1.0.*

Or add the package to your composer.json:

{
    "require": {
        "jacknoordhuis/laravel-database-hashing": "1.0.*"
    }
}