DEV Community

loading...

Discussion on: Automatic Laravel Data Encryption with Eloquent

Collapse
tommyhendrawan profile image
Tommy Hendrawan Author

You can encrypt the old data with command below

    php artisan encryptable:encryptModel '<Your Model Path>'
Enter fullscreen mode Exit fullscreen mode

eg.

    php artisan encryptable:encryptModel 'App\User'
Enter fullscreen mode Exit fullscreen mode
Collapse
siv_casm profile image
Shivam Pandya

Thank you very much. :)

Thread Thread
codefinity profile image
Manav Misra

Nice of you to thank the author. Welcome to community! 🤓