Monday, March 6, 2017

How do i hide my .env in laravel and Deploy Laravel Applicatio

I don't want the file in my root directly to be hidden that include .env file of laravel maybe with .htaccess or any other way i have am trying to host it bt i don't want some to go to mysite.com/.env

APP_ENV=local
APP_KEY=base64:w8nPcK6CVaazC/WEv42hf+QOs4zWg2izt1pubH0KnQE=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306

I have this error from my server.

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/skycashs/public_html/public/index.php on line 50



via dagogodboss

Advertisement