User Panel

20. User Panel Setup

The User Panel is the buyer/seller-facing marketplace — a Laravel 12 + Bootstrap 5 application. It reads and writes marketplace data directly from Firestore using the Firebase JS SDK. Upload the package to your main domain (recommended) and extract it.

20.1. Install dependencies and generate the application key:

composer install
cp .env.example .env
php artisan key:generate
php artisan migrate

20.2. Add the same Firebase credentials to the User Panel’s .env that you used for the Admin Panel, including the named database value:

FIREBASE_APIKEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_DATABASE_URL=
FIREBASE_PROJECT_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_MESSAAGING_SENDER_ID=
FIREBASE_APP_ID=
FIREBASE_MEASUREMENT_ID=
FIRESTORE_DATABASE_NAME=(default)

20.3. Place the Firebase service account file at storage/app/firebase/credentials.json — it is used to verify the Firebase ID token and create the Laravel session (login bridge).

Please Note:

Use the same Firebase project and credentials for the Admin Panel, User Panel and Mobile App so all clients share one live dataset.

Google Login

Google sign-in works out of the box once Google is enabled in Firebase Authentication. Make sure your User Panel domain is listed under the Firebase Authentication Authorized domains, and that the OAuth 2.0 client (in Google Cloud Console → APIs & Services → Credentials) includes your domain under Authorized JavaScript origins and redirect URIs (e.g. https://yourdomain.com/__/auth/handler).

20.4. The user panel is now ready. It requires no front-end build step (Bootstrap 5 is loaded via CDN). Access your site at your domain, for example http://yourdomain.com/.

Recent Posts

    Archives

    No archives to show.

    Categories

    • No categories

    Blog Categories

    • No categories

    Archives

      Categories

      • No categories