Artisan.page

env:encrypt

Encrypt an environment file

Terminal
php artisan env:encrypt [--key [KEY]] [--cipher [CIPHER]] [--env [ENV]] [--readable] [--prune] [--force]

Options

cipherOptional

The encryption cipher

envOptional

The environment to be encrypted

forceOptional

Overwrite the existing encrypted environment file

keyOptional

The encryption key

pruneOptional

Delete the original environment file

readableOptional

Encrypt each variable individually with readable, plain-text variable names