2017 © Pedro Peláez
 

library larabits

A collection of useful Laravel bits.

image

jivemonkey2000/larabits

A collection of useful Laravel bits.

  • Wednesday, March 1, 2017
  • by jivemonkey2000
  • Repository
  • 1 Watchers
  • 1 Stars
  • 87 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Larabits

A place for helpful collection of Laravel bits and bobs to reside., (*1)

Eloquent

Attribute Encryption

Add attribute level encryption to your Eloquent models in just a few steps: - Import Larabits\Eloquent\AttributeEncryption at the top of your class - Add an $encrypt array property and populate it with attributes you wish to encrypt - Add use AttributeEncryption to your Eloquent models, (*2)

Just like this:, (*3)

<?php

use Illuminate\Database\Eloquent\Model;
use Larabits\Eloquent\AttributeEncryption;

class User extends Model
{
    use AttributeEncryption;

    /**
     * The attributes that should be encrypted.
     *
     * @var array
     */
    protected $encrypt = [
        'email',
        'secret',
    ];

}

If required, encryption can be enabled and disabled by using your .env file to set an APP_ENABLE_ENCRYPTION constant false. This is sometimes useful for testing, for example when using seeInDatabase('table',['foo' => 'bar']);., (*4)

Installing

To install Larabits, either add it your composer.json or do a composer require jivemonkey2000/larabits from your project root. ``` composer require jivemonkey2000/larabits, (*5)

The Versions

01/03 2017

dev-master

9999999-dev https://github.com/jivemonkey2000/larabits

A collection of useful Laravel bits.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Andrew Lees

laravel eloquent encryption

01/03 2017

v1.0.3

1.0.3.0 https://github.com/jivemonkey2000/larabits

A collection of useful Laravel bits.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Andrew Lees

laravel eloquent encryption

02/02 2017

dev-dev

dev-dev https://github.com/jivemonkey2000/larabits

A collection of useful Laravel bits.

  Sources   Download

MIT

The Requires

 

by Andrew Lees

laravel eloquent encryption eventsource server side events broadcasts

13/01 2017

v1.0.2

1.0.2.0 https://github.com/jivemonkey2000/larabits

A collection of useful Laravel bits.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Andrew Lees

laravel eloquent encryption

12/01 2017

v1.0.1

1.0.1.0 https://github.com/jivemonkey2000/larabits

A collection of useful Laravel bits.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Andrew Lees

laravel

12/01 2017

v1.0.0

1.0.0.0 https://github.com/jivemonkey2000/larabits

A collection of useful Laravel bits.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Andrew Lees

laravel