Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Merge 5d7a998 into 30515c1
Browse files Browse the repository at this point in the history
  • Loading branch information
lwiml committed Dec 6, 2019
2 parents 30515c1 + 5d7a998 commit 8bfa873
Show file tree
Hide file tree
Showing 38 changed files with 61 additions and 38 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -18,6 +18,8 @@ matrix:
env: LARAVEL=57
- php: 7.2
env: LARAVEL=58
- php: 7.2
env: LARAVEL=6
- php: 7.3
env: LARAVEL=55
- php: 7.3
Expand All @@ -26,6 +28,8 @@ matrix:
env: LARAVEL=57
- php: 7.3
env: LARAVEL=58
- php: 7.3
env: LARAVEL=6

services:
- mysql
Expand Down Expand Up @@ -68,6 +72,11 @@ script:
- if [ "$LARAVEL" = "58" ] ; then composer require "laravel/framework:5.8.*" --no-update ; fi
- if [ "$LARAVEL" = "58" ] ; then composer require "orchestra/database:3.8.*" --no-update ; fi
- if [ "$LARAVEL" = "58" ] ; then composer require "orchestra/testbench:3.8.*" --no-update ; fi
# Packages: Laravel 6.x.x
- if [ "$LARAVEL" = "6" ] ; then composer require "phpunit/phpunit:^8.0" --no-update ; fi
- if [ "$LARAVEL" = "6" ] ; then composer require "laravel/framework:^6.0" --no-update ; fi
- if [ "$LARAVEL" = "6" ] ; then composer require "orchestra/database:^4.0" --no-update ; fi
- if [ "$LARAVEL" = "6" ] ; then composer require "orchestra/testbench:^4.0" --no-update ; fi
# Packages: Update
- composer update --prefer-source --no-interaction
# Tests: Run
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -63,7 +63,7 @@ directory. The most logical place to start are the [docs for the `HasEncryptedAt

## Requirements

* Laravel: 5.5, 5.6, 5.7, or 5.8
* Laravel: 5.5, 5.6, 5.7, 5.8, or 6.x
* PHP: 7.1, 7.2, or 7.3
* PHP [OpenSSL extension](http://php.net/manual/en/book.openssl.php)

Expand All @@ -75,6 +75,7 @@ Laravel|[v5.5](https://laravel.com/docs/5.5/releases)|[v0.1.0](https://github.co
Laravel|[v5.6](https://laravel.com/docs/5.6/releases)|[v0.1.1](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.1.1) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.1.1))|Stable|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.1.1)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.1.1)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.1.1)](https://travis-ci.org/austinheap/laravel-database-encryption)
Laravel|[v5.7](https://laravel.com/docs/5.7/releases)|[v0.2.0](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.2.0) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.0))|Stable|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)
Laravel|[v5.8](https://laravel.com/docs/5.8/releases)|[v0.2.1](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.2.1) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.1))|Stable|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.1)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.1)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.1)](https://travis-ci.org/austinheap/laravel-database-encryption)
Laravel|[v6.x](https://laravel.com/docs/6.x/releases)|[v0.2.2](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.2.2) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.2))|Stable|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.2)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.2)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.2)](https://travis-ci.org/austinheap/laravel-database-encryption)

## Schemas

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -25,6 +25,7 @@
"laravel56 encryption",
"laravel57 encryption",
"laravel58 encryption",
"laravel6 encryption",
"eloquent encryption",
"model encryption",
"attribute encryption",
Expand Down Expand Up @@ -54,12 +55,12 @@
},
"require": {
"php": ">=7.1.0",
"laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*"
"laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*|6.*.*"
},
"require-dev": {
"codeclimate/php-test-reporter": "dev-master",
"phpunit/phpunit": "~6.0|~7.0",
"orchestra/testbench": "^3.5"
"orchestra/testbench": "^3.5|^4.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion config/database-encryption.php
Expand Up @@ -3,7 +3,7 @@
* src/config/database-encryption.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

return [
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/MigrateEncryptionCommand.php
Expand Up @@ -3,7 +3,7 @@
* src/Console/Commands/MigrateEncryptionCommand.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down
2 changes: 1 addition & 1 deletion src/EncryptionDefaults.php
Expand Up @@ -3,7 +3,7 @@
* src/EncryptionDefaults.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down
2 changes: 1 addition & 1 deletion src/EncryptionFacade.php
Expand Up @@ -3,7 +3,7 @@
* src/EncryptionFacade.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down
2 changes: 1 addition & 1 deletion src/EncryptionHelper.php
Expand Up @@ -3,7 +3,7 @@
* src/EncryptionHelper.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down
2 changes: 1 addition & 1 deletion src/EncryptionServiceProvider.php
Expand Up @@ -3,7 +3,7 @@
* src/EncryptionServiceProvider.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasEncryptedAttributes.php
Expand Up @@ -3,7 +3,7 @@
* src/Traits/HasEncryptedAttributes.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down
14 changes: 13 additions & 1 deletion src/helpers.php
Expand Up @@ -3,7 +3,7 @@
* src/helpers.php.
*
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/
declare(strict_types=1);

Expand Down Expand Up @@ -96,3 +96,15 @@ function dbdecrypt(string $value): ?string
return database_decrypt($value);
}
}

if (! function_exists('str_random')) {

/**
* @param int $value
* @return string|null
*/
function str_random(int $value = 16): ?string
{
return \Illuminate\Support\Str::random($value);
}
}
2 changes: 1 addition & 1 deletion tests/Console/MigrateEncryptionTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Console;
Expand Down
2 changes: 1 addition & 1 deletion tests/DatabaseTestCase.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests;
Expand Down
2 changes: 1 addition & 1 deletion tests/Defaults/ControlCharactersTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Defaults;
Expand Down
2 changes: 1 addition & 1 deletion tests/Defaults/EnabledTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Defaults;
Expand Down
2 changes: 1 addition & 1 deletion tests/Defaults/HelpersTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Defaults;
Expand Down
2 changes: 1 addition & 1 deletion tests/Defaults/PrefixTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Defaults;
Expand Down
2 changes: 1 addition & 1 deletion tests/Defaults/VersioningTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Defaults;
Expand Down
2 changes: 1 addition & 1 deletion tests/Facade/FacadeTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/DisabledTest.php
Expand Up @@ -4,7 +4,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/EnabledTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/HeaderPrefixTest.php
Expand Up @@ -4,7 +4,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/PrefixTest.php
Expand Up @@ -4,7 +4,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/SingletonTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/VersionPartsTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/VersioningTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Helper/VersionlessTest.php
Expand Up @@ -4,7 +4,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Helper;
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/DatabaseModel.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Models;
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/DummyModel.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Models;
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/FakeModel.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Models;
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/RealModel.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Models;
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/DatabaseTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Traits;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/DirtyTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Traits;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/DummyTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Traits;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/ExceptionTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Traits;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/FloatTest.php
Expand Up @@ -5,7 +5,7 @@
* @package laravel-database-encryption
* @link https://github.com/austinheap/laravel-database-encryption
* @author Austin Heap <me@austinheap.com>
* @version v0.2.1
* @version v0.2.2
*/

namespace AustinHeap\Database\Encryption\Tests\Traits;
Expand Down

0 comments on commit 8bfa873

Please sign in to comment.