4 September 2021
5. Go to https://yourwebgame/control login as admin and password changeme
To change game configuration you can edit .env file.
To generate key you must run artisan command: php artisan key:generate
EXAMPLE (do not copy-paste from image):
APP_DEBUG=false APP_URL=https://your.domain APP_KEY=generated_key
For example, the database connection can be specified with these variables.
DB_CONNECTION=mysql
DB_HOST=127.0.0. DB_PORT= 3306 DB_DATABASE=database DB_USERNAME=root DB_PASSWORD=
All game-related configuration can be edited in /config/re.php file as well you can use .env file environment variables. More information about stripe setup can be found in section “Stripe integration”.
Game configuration example:
We have made stripe integration as easy as possible, that's why we offer only two “products” that can be sold to payers: Coins and Gems - two in-game currencies. All other special/premium digital goods can be sold on the game market. To increase player orders you can limit game coin and gem awards.
Sign in into your Stripe account, and go to Developers -> Webhooks section, create new webhook with following data:
URL: https://your.domain/stripe-webhook
Events: checkout.session.completed
Once you have created webhook copy Webhook signing secret (key)
Paste webhook secret in .env file as
RE_STRIPE_WEBHOOK_SECRET= wh_secret
Go to Developers -> API Keys and click show key
Copy secret key
Paste secret key in .env file as
RE_STRIPE_PRIVATE_KEY= secret_key
Go to Products section and click + Add product button
Paste product details in .env file
For Coins:
RE_COINS_PRICE_ID= price_id_from_stripe RE_COINS_BUNDLE_PRICE=5. RE_COINS_BUNDLE_SIZE=
or for Gems:
RE_GEMS_PRICE_ID= price_id_from_stripe RE_GEMS_BUNDLE_PRICE=5. RE_GEMS_BUNDLE_SIZE=
This game is developed by CodeTool team and if you need any support, please contact us.
ReBattle includes 10 avatars, 40 craft assets, 35 wearable assets + 150 wearable color variations In total 235 game assets can be used in-game.
ReBattle official game artist is Timur