diff --git a/.env.example b/.env.example index 3760e64..74a6376 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,31 @@ -# this u have config or change the name folder -# write this config +# config file .env untuk configurasi pada file +# apps/config/database.php +# apps/config/constant.php -# configurasi Path here +APP_DEBUG=true +APP_ENV=local +APP_MAINTENANCE=off + +# configurasi Path here APP_NAME=prosedural-php-native APP_FOLDER=/prosedural-php-native/ APP_HOST=http://localhost/ APP_URL=http://localhost/prosedural-php-native/ -#database config +# configurasi Database here DB_HOST=localhost DB_PORT=3306 DB_NAME= -DB_USER=root -DB_PASS= +DB_USERNAME=root +DB_PASSWORD= + +# configurasi mailer (on development) +MAIL_DEBUG=true +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME='${APP_NAME}' \ No newline at end of file diff --git a/README.md b/README.md index d435f52..d70d76d 100644 Binary files a/README.md and b/README.md differ diff --git a/composer.json b/composer.json index d89814d..b0e171a 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ }, "scripts": { "post-create-project-cmd": [ - "cp .env.example .env" + "php includes/script/generate.php" ] }, "minimum-stability": "dev", diff --git a/includes/.htaccess b/includes/.htaccess new file mode 100644 index 0000000..3418e55 --- /dev/null +++ b/includes/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file diff --git a/includes/script/generate.php b/includes/script/generate.php new file mode 100644 index 0000000..ee77ff1 --- /dev/null +++ b/includes/script/generate.php @@ -0,0 +1,41 @@ + +
+You don't have permission to access this resource.
+You don't have permission to access this resource.
+