Configurations


SaaSWeb have some configs to help you up and runing your Software as a Service project.

Configure Stripe key

You should configure your Stripe key in your .env configuration file in order to the script works properly. You can retrieve your Stripe API keys from the Stripe control panel

Obtaining an Authy API Key

For using the Two factor authentication in your project you need to add your AUTHY_SECRET key. please go to https://www.twilio.com/docs/authy/twilioauth-sdk/quickstart/obtain-authy-api-key for help.

STRIPE_KEY=
STRIPE_SECRET=
CASHIER_CURRENCY=usd
CASHIER_CURRENCY_SYMBOL=$

AUTHY_SECRET=
FORCE_HTTPS=false
TAWKTO_ID=


Configure your mail

{warning} Email Verification and Forgot Password, your application must be configured to send email before these features can be used.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null

{warning} Email Verification and Forgot Password etc ..., Laravel includes a queue worker that will process new sending emails jobs. You may run the worker using the Artisan command. Note that once the command has started, it will continue to run until it is manually stopped or you close your terminal:

php artisan queue:work


Force HTTPS

When pushing the project to a platform or production environment, assets or urls may be broken if the platform enforces HTTPS. To enable urls to use HTTPS: Set FORCE_HTTPS variable in .env file to true. By default FORCE_HTTPS is false.

FORCE_HTTPS=flase

{warning} If FORCE_HTTPS does not exist in your .env, just add it as a new variable and assign a boolean value true or false.