Skip to content

Commit

Permalink
docs: move warning about encrypted casts
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo authored Mar 4, 2024
1 parent f893b26 commit 7fadff1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
[![Total Downloads][ico-downloads]][link-downloads]
[![Made by SWIS][ico-swis]][link-swis]

> [!WARNING]
> Laravel supports [encrypted casts](https://laravel.com/docs/10.x/eloquent-mutators#encrypted-casting) since version 8.12, so new projects should use that instead of this package. If you want to encrypt files, take a look at [swisnl/flysystem-encrypted](https://packagist.org/packages/swisnl/flysystem-encrypted).
>
> We aim to provide a migration path to encrypted casts. See issue [#1](https://github.com/swisnl/laravel-encrypted-data/issues/1) for more information.
>
This package contains several Laravel utilities to work with encrypted data.

## Install
Expand All @@ -31,6 +25,12 @@ N.B. Using Laravel 6-8? Please use version [1.x](https://github.com/swisnl/larav

### Models

> [!WARNING]
> Laravel supports [encrypted casts](https://laravel.com/docs/10.x/eloquent-mutators#encrypted-casting) since version 8.12, so new projects should use that instead of the models provided by this package.
>
> We aim to provide a migration path to encrypted casts. See issue [#1](https://github.com/swisnl/laravel-encrypted-data/issues/1) for more information.
>
Extend `\Swis\Laravel\Encrypted\EncryptedModel` in your model and define the encrypted fields. Make sure your database columns are long enough, so your data isn't truncated!

``` php
Expand Down

0 comments on commit 7fadff1

Please sign in to comment.