php >= ^8.0.2
MySql >= 5.7 OR MariaDB >= 10.6
Current laravel version is ^9.19
Composer version 2
- Clone this repository.
- Rename .env.example file to .env file
- Add required information to .env file like database name, user, password, email smtp info.
- Run composer command in CLI: composer install
- Run migration command in CLI: php artisan migrate --seed
- Run passport command in CLI: php artisan passport:install
- Run storage command in CLI: php artisan storage:link
- If you want to run this app in localhost then run this command: php artisan serve
- set cron job: * * * * * php /APPLICATION-PATH/artisan schedule:run 1>> /dev/null 2>&1
-
APP_NAME="APPLICATION NAME"
-
APP_ENV=local OR production
-
APP_DEBUG=true (in local envirnment set true else false)
-
APP_URL=https://API-URL-HERE
-
FRONT_URL=https://FORNTEND-URL-HERE
-
DB_CONNECTION=mysql
-
DB_HOST=127.0.0.1
-
DB_PORT=3306
-
DB_DATABASE="DPR-DATABASE-NAME"
-
DB_USERNAME="DPR-DATABASE-USER"
-
DB_PASSWORD="DPR-DATABASE-PASSWORD"
-
KPMG_MASTER_DB_HOST=127.0.0.1
-
KPMG_MASTER_DB_PORT=3306
-
KPMG_MASTER_DB_DATABASE="COMMON-DATABASE-NAME"
-
KPMG_MASTER_DB_USERNAME="COMMON-DATABASE-USER"
-
KPMG_MASTER_DB_PASSWORD="COMMON-DATABASE-PASSWORD"
-
SESSION_LIFETIME=session timeout in minutes
-
MAIL_MAILER=smtp
-
MAIL_HOST=mail.domain.name
-
MAIL_PORT=587
-
MAIL_USERNAME="[email protected]"
-
MAIL_PASSWORD="EMAIL-PASSWORD"
-
MAIL_ENCRYPTION=tls
-
MAIL_FROM_ADDRESS="[email protected]"
-
MAIL_EHLO_DOMAIN=domain.name
-
MAIL_FROM_NAME="${APP_NAME}"
-
CDN_DOC_URL=https://API-URL-HERE-WITH-SLASH/
-
IS_MAIL_ENABLE=If Mail connected then true else false
-
TIME_ZONE=Asia/Calcutta
-
OTP_ATTEMPT_LIMIT=How many times user can attempt OTP in login form
-
LOCK_TIME_IN_SEC_INCORRECT_PWD_TIME=If user enters wrong password (LOGIN_ATTEMPT_LIMIT) account will be locked till this time (in seconds)
-
LOGIN_ATTEMPT_LIMIT=How many attempts a user can make to login"# kpmg-cpcl-dpr-api" "# cpcl-dpr-api" "# cpcl-dpr-api"