FAQs

Section intro goes here. You can list all your FAQs using the format below.

Admin Doc

- To remove public from URL create .htaccess file in root folder and write following code.


<IfModule mod_rewrite.c>
	RewriteEngine On 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

- To remove public from URL and Force HTTPS redirection create .htaccess file in root folder and write following code.


<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTPS} !=on
	RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

For more detail read article : https://stackoverflow.com/questions/23837933/how-can-i-remove-public-index-php-in-the-url-generated-laravel

To Hide or Denied Access .env and create .htaccess file in root folder and write following code.


# Disable Directory listing
Options -Indexes

# block files which needs to be hidden, specify .example extension of the file
</FilesMatch "^\.env">
    Order allow,deny
    Deny from all
<//FilesMatch>

Debug mode will help you to track the error on your website. It is not all preferred to turn the debug mode on live site for very long time.

How to turn debug mode on

  • Login to you FTP account.
  • Open and edit .env file.

Change

APP_DEBUG=false

To

APP_DEBUG=true
  • Save and upload the file.

false means debug mode is OFF
true means debug mode is ON

Make sure php version 7.4.15 and use all following PHP setting. Its show due to session not save.

Mail/API Settings

For Email Sending.

Open and edit .env file.


MAIL_DRIVER=smtp (some times support sendmail)
MAIL_HOST=smtp.mailtrap.io (For Gmail = smtp.gmail.com)
MAIL_PORT=2525  (For Gmail = 465)
MAIL_USERNAME=youremailid
MAIL_PASSWORD=yourpassword
MAIL_ENCRYPTION=null  (For Gmail = ssl)

Note : If showing error in reset password, New User Registration and Payment Gateways then must check your mail setting. Reset password, New User Registration and Payment Gateways error show due to you forget add mail details in .env file.

For Mail Detail Section: Enter the name with no spaces. Their are three Mail Drivers: SMTP, Mail, sendmail, if SMTP is not working then check sendmail.

Gmail SMTP setup settings:

  • SMTP username: Your Gmail address.
  • SMTP password: Your Gmail password. If Using Gmail then Use App Password. Process of App Password
  • SMTP server address: smtp.gmail.com.
  • Gmail SMTP port (TLS): 587.
  • SMTP port (SSL): 465.
  • SMTP TLS/SSL required: yes.