2017 © Pedro Peláez
 

package attribute-hashing

Allows you to define what attributes in your Eloquent Model which should be hashed.

image

larapack/attribute-hashing

Allows you to define what attributes in your Eloquent Model which should be hashed.

  • Friday, March 4, 2016
  • by marktopper
  • Repository
  • 1 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

attribute-hashing

Allows you to define what attributes in your Eloquent Model which should be hashed., (*1)

Installing

Install using Composer composer require larapack/attribute-hashing 1.*., (*2)

Usage

First add the traits Manipulateable and Hashable to your Eloquent Model., (*3)

<?php

namespace App;

use Larapack/AttributeManipulating/Manipulateable;
use Larapack/AttributeHashing/Hashable;

class User
{
  use Manipulateable;
  use Hashable;

  /**
   * @var array List of attribute names which should be hashed
   */ 
  protected $hash = ['password']; // set the attribute names you which to hash

  //...
}

Now whenever you set the attribute password it will now be hashed., (*4)

Test:, (*5)

$user = new App\User;
$user->password = 'secret';
echo $user->password // Here you will see the encrypted password

The Versions

04/03 2016

v1.0.x-dev

1.0.9999999.9999999-dev

Allows you to define what attributes in your Eloquent Model which should be hashed.

  Sources   Download

MIT

The Requires

 

laravel package hash hashing attribute larapack

04/03 2016

dev-develop

dev-develop

Allows you to define what attributes in your Eloquent Model which should be hashed.

  Sources   Download

MIT

The Requires

 

laravel package hash hashing attribute larapack

04/03 2016

dev-master

9999999-dev

Allows you to define what attributes in your Eloquent Model which should be hashed.

  Sources   Download

MIT

The Requires

 

laravel package hash hashing attribute larapack

27/11 2015

v1.0.0

1.0.0.0

Allows you to define what attributes in your Eloquent Model which should be hashed.

  Sources   Download

MIT

The Requires

 

laravel package hash hashing attribute larapack