PHPackages                             teqnifii/laravel-key-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. teqnifii/laravel-key-migration

ActiveLibrary[Security](/categories/security)

teqnifii/laravel-key-migration
==============================

Rotate your Laravel keys and migrate your encrypted data to a new key.

0.0.1(2y ago)04[2 PRs](https://github.com/Teqnifii/laravel-key-migration/pulls)MITPHPPHP ^8.1

Since Mar 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Teqnifii/laravel-key-migration)[ Packagist](https://packagist.org/packages/teqnifii/laravel-key-migration)[ Docs](https://github.com/teqnifii/laravel-key-migration)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/teqnifii-laravel-key-migration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (4)Used By (0)

Laravel Key Migration
=====================

[](#laravel-key-migration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/67b509cd661ad703fc5adf1d15734f72c263d594e1845ce9df8a9623862f76a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7465716e696669692f6c61726176656c2d6b65792d6d6967726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teqnifii/laravel-key-migration)[![GitHub Tests Action Status](https://camo.githubusercontent.com/73018c7e3d9d94856d6ce54c538732a64577ad651770bbf855143e42645abcaf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7465716e696669692f6c61726176656c2d6b65792d6d6967726174696f6e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/teqnifii/laravel-key-migration/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/26259ff43859d0586332b5e292cab0772d2cc363164840400c4a02adc2655e03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7465716e696669692f6c61726176656c2d6b65792d6d6967726174696f6e2f6c61726176656c2d70696e742e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/teqnifii/laravel-key-migration/actions?query=workflow%3A%22Laravel+Pint%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/32fc45353f1c01a95cf1e15bc7280d7cadf917876c7153b7fd90e7a4d141e9cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7465716e696669692f6c61726176656c2d6b65792d6d6967726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teqnifii/laravel-key-migration)

App Key rotation and migrating records in the DB without the hassles of waiting for everything to update.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require teqnifii/laravel-key-migration
```

### *IMPORTANT NOTE*

[](#important-note)

> Make sure your models are using the cast type `encrypted` for the fields you want to encrypt:

```
