Archivo .env (sustituyendo claves por xxxxx):
PP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:HNRlFJDxg/qa133xsegrfDpaG3+bJtK6GM+uobfALi4=
APP_DEBUG=true
APP_URL=http://www.misitio.com/
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=db748432832.db.1and1.com
DB_PORT=3306
DB_DATABASE=db748432832
DB_USERNAME=dbo748432832
DB_PASSWORD='xxxxx'
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=xxxxxx
MAIL_ENCRYPTION=tls
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
Y mis rutas:
Route::get('/contact', 'PagesController@getContact');
Route::post('/contact', 'PagesController@postContact');