Skip to content

Instantly share code, notes, and snippets.

@snipe
Last active March 23, 2018 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snipe/936bf578fea346e0c16845a7146d7f59 to your computer and use it in GitHub Desktop.
Save snipe/936bf578fea346e0c16845a7146d7f59 to your computer and use it in GitHub Desktop.
Snipe-IT tinker cached .env recover for wiped file
# --------------------------------------------
# REQUIRED: BASIC APP SETTINGS
# --------------------------------------------
APP_ENV=production
APP_DEBUG=false
APP_KEY=ChangeMe
APP_URL=null
APP_TIMEZONE='UTC'
APP_LOCALE=en
config('app.env');
config('app.debug');
config('app.key');
config('app.timezone');
config('app.locale');
# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=null
DB_USERNAME=null
DB_PASSWORD=null
DB_PREFIX=null
DB_DUMP_PATH='/usr/bin'
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_unicode_ci
config('database.connections.mysql.host');
config('database.connections.mysql.database');
config('database.connections.mysql.username');
config('database.connections.mysql.password');
config('database.connections.mysql.prefix');
config('database.connections.mysql.dump_command_path');
config('database.connections.mysql.charset');
config('database.connections.mysql.collation');
# --------------------------------------------
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
# --------------------------------------------
MAIL_DRIVER=smtp
MAIL_HOST=email-smtp.us-west-2.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=YOURUSERNAME
MAIL_PASSWORD=YOURPASSWORD
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=you@example.com
MAIL_FROM_NAME='Snipe-IT'
MAIL_REPLYTO_ADDR=you@example.com
MAIL_REPLYTO_NAME='Snipe-IT'
config('mail.driver');
config('mail.host');
config('mail.port');
config('mail.username');
config('mail.password');
config('mail.encryption');
config('mail.from.address');
config('mail.from.name');
config('mail.reply_to.address');
config('mail.reply_to.name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment