InstaHaul
  • Introduction
  • Usage Flows (FlowCharts)
  • Firebase
    • Firebase
    • Firebase firestore database
    • Firebase Security
    • Firebase Storage
    • Firestore indexes
    • Chat & Live tracking
  • Backend
    • Prerequisite
    • VPS/Shared Hosting
    • Installation
    • Composer & Node Packages
    • Database Configuration
    • GUI Installer
    • Timezone
    • Firebase
    • Web Notification
    • Firebase Forgot password
    • Change Backend Color
    • Reskin Mobile App
    • Terminal
      • Commands
    • Screenshots
    • Order schedule
    • CRON job
    • Clear Data (Users/Orders etc)
    • Email Server Settings
    • SMS Gateway
    • Payment Gateways
    • Webhooks - Payment gateway
    • Language / Translation
    • HOW TO UPDATE
    • In-App Live chat/support
    • Geocoding and Place search
    • Features
      • Firebase/Notification Delay
      • Fleet Management
      • Loyalty points
      • Home Screen Design
      • Featured Vendors
      • Trip recalculation/Outstanding payments
      • Switch between Taxi/Regular Driver
      • Data Translation - Backend
  • Flutter App
    • Getting Started
    • Steps
    • Directory Structure
    • Change App Name & ID
    • Change App icon & splash
    • App Color / Theme
    • Connect To Backend
    • Firebase
    • Firebase Auth - Phone
    • Firebase Phone OTP - Android
    • Firebase Phone OTP - iOS
    • Firebase Notification iOS
    • Share link - Firebase dynamic link
    • Social Media Login
      • Google login
      • Facebook Login
      • Sign-In with Apple
    • Google Map
    • Change App Language
    • Notification Sound
    • Custom Translation
    • Change App Font
    • Running on VS Code
    • Running on Android Studio
    • Generate Android Release App
    • Upload to Apple App Store
    • Screenshots
  • Demo Accounts
  • FAQs
    • Backend Image not working
    • Backend Backup not working
    • Upgrade without losing data
    • Backend Rollback
    • Blank Home screen
    • Custom Token
    • Product price zero(0) in details
    • Auto-cancel Not working
    • Pharmacy vendor
    • Vendor default rating
    • App logins
    • Error ==> type 'String' is not a subtype of type 'int'
    • NDK version error
    • Push Notification
    • Delivery Zone Map error
    • HOW TO UPDATE ADMINEND
    • Driver app rejected by Google
    • Cron job error
    • Auth pages Not working - App
  • HOW-TO
    • Onboarding Settings
    • Earning
      • Drivers
    • Enforce CASH Payment For Delivery Fee Only
    • System Contact Email
    • Driver Matching Flow
  • Extensions
    • Driver tracking extensions
    • Paymongo Gateway
    • Mercadopago Gateway
    • Nagad [Bangladeshi]
    • Instamojo - Payment
    • Paytrail
    • Paymaya Gateway
    • Emailer
    • External Notifier
      • Slack Setup
      • Telegram Setup
  • Upgrades
    • How to update
    • Important: Backend VPS/Shared hosting
    • 1.0.1
    • 1.1.00
    • Change logs
Powered by GitBook
On this page
  • Backend Images not showing?
  • Image still not loading
  • Note:
  • Cloudflare / Ohter DNS / Load balancers
  • Livewire asset publishing
  1. FAQs

Backend Image not working

Backend Images not showing?

Please check that you have set the APP_URL in the .env to your domain url.

Run the command in your terminal in the backend

php artisan storage:link

Image still not loading

Image still not loading, then run this command

Then run this command

ln -s /DIR_TO_PROJECT_FOLDER/storage/app/public /DIR_TO_PROJECT_FOLDER/public/storage

Replace DIR_TO_PROJECT_FOLDER with path to the project folder on your server

ln -s /DIR_TO_PROJECT_FOLDER/storage/app/public /DIR_TO_PROJECT_FOLDER/public/storage

Replace DIR_TO_PROJECT_FOLDER with path to the project folder on your server

In some case you might have to run the command like below:

In some case you might have to run the command like below:

ln -s /storage/app/public /public/storage

Note:

If after running any of the commands above got an error about file exists. Then run the command below first, then run the linking command again

rm -R public/storage

Cloudflare / Ohter DNS / Load balancers

Note: If you are using proxies/external DNS for your domain. For example, if you're behind Cloudflare or some kind of load balancer this also applies.

You might be getting error in the cloud or the upload just continute to load indefinately, this is because the traffic is proxied. You can set the trusted proxy in the TrustProxies middleware as per the Laravel docs.

The simplest way is to trust all proxies if you don't know them.

Find the middlewareTrustProxiesand edit the file. Path: app/Http/Middleware/TrustProxies.php

Modify the line with the $proxies variable as shown below:

protected $proxies = '*';

Livewire asset publishing

If after that the upload is still not working, then you might need to run the command below in your cpanel terminal. Open terminal and change terminal path to the root directory of your backend.

For example, if your backend is in the path as follow: /home/edentech/public_html/admin. Then run the cd /home/edentech/public_html/admin in terminal on your server panel(aapanel/cpanel etc.)

Then run this command to publish livewire assests.

php artisan livewire:publish --assets
PreviousFAQsNextBackend Backup not working