@extends('backend.template.layouts.template-base') @section('title', 'Settings - Firebase Settings') @section('content')
@csrf

Firebase Settings

@if (session('message')) @endif @if ($errors->any()) @endif

Firebase Cloud Messaging (FCM)

Used for push notifications. Get these values from your Firebase project's service account JSON file.


Found in Firebase Console → Project Settings → General
The client_email field from the service account JSON
Paste the full private_key value from the service account JSON (including the -----BEGIN / -----END lines). Leave blank to keep the existing key.
Absolute server path to the service account JSON file. Used only when the Private Key field above is empty.
{{-- ── Web Push SDK ─────────────────────────────────────────────── --}}

Web Push SDK

Required for browser-based push notifications. Get these from Firebase Console → Project Settings → General → Your apps → Web app.


Project Settings → General → Web app → apiKey
authDomain from the web app config
storageBucket from the web app config
messagingSenderId from the web app config
appId from the web app config
Project Settings → Cloud Messaging → Web Push certificates → Key pair

How to get these values


Server-side FCM (project_id, client_email, private_key)

  1. Open Firebase Console → select your project
  2. Go to Project Settings (gear icon) → Service accounts tab
  3. Click Generate new private key — a JSON file will download
  4. Copy project_id, client_email, and private_key from that file into the fields above

Web Push SDK (apiKey, appId, vapidKey, …)

  1. Go to Project Settings → General → Your apps
  2. Click Add app → Web (if not already added) — copy the config object
  3. For the VAPID key: Project Settings → Cloud Messaging → Web Push certificates → Generate key pair
@endsection @section('scripts') @endsection