Laravel menghasilkan env
cp .env.example .env
php artisan key:generate
Difficult Dove
cp .env.example .env
php artisan key:generate
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}
APP_ENV=production
APP_DEBUG=false
APP_ENV=production
APP_DEBUG=false