| 
 | 1 | +<?php  | 
 | 2 | + | 
 | 3 | +return [  | 
 | 4 | +    /**  | 
 | 5 | +     * ------------------------------------------------------------------------  | 
 | 6 | +     * Credentials / Service Account  | 
 | 7 | +     * ------------------------------------------------------------------------  | 
 | 8 | +     *  | 
 | 9 | +     * In order to access a Firebase project and its related services using a  | 
 | 10 | +     * server SDK, requests must be authenticated. For server-to-server  | 
 | 11 | +     * communication this is done with a Service Account.  | 
 | 12 | +     *  | 
 | 13 | +     * If you don't already have generated a Service Account, you can do so by  | 
 | 14 | +     * following the instructions from the official documentation pages at  | 
 | 15 | +     *  | 
 | 16 | +     * https://firebase.google.com/docs/admin/setup#initialize_the_sdk  | 
 | 17 | +     *  | 
 | 18 | +     * Once you have downloaded the Service Account JSON file, you can use it  | 
 | 19 | +     * to configure the package.  | 
 | 20 | +     *  | 
 | 21 | +     * If you don't provide credentials, the Firebase Admin SDK will try to  | 
 | 22 | +     * autodiscover them  | 
 | 23 | +     *  | 
 | 24 | +     * - by checking the environment variable FIREBASE_CREDENTIALS  | 
 | 25 | +     * - by checking the environment variable GOOGLE_APPLICATION_CREDENTIALS  | 
 | 26 | +     * - by trying to find Google's well known file  | 
 | 27 | +     * - by checking if the application is running on GCE/GCP  | 
 | 28 | +     *  | 
 | 29 | +     * If no credentials file can be found, an exception will be thrown the  | 
 | 30 | +     * first time you try to access a component of the Firebase Admin SDK.  | 
 | 31 | +     *  | 
 | 32 | +     */  | 
 | 33 | +    'credentials' => [  | 
 | 34 | +        'file' => env('FIREBASE_CREDENTIALS'),  | 
 | 35 | + | 
 | 36 | +        /**  | 
 | 37 | +         * If you want to prevent the auto discovery of credentials, set the  | 
 | 38 | +         * following parameter to false. If you disable it, you must  | 
 | 39 | +         * provide a credentials file.  | 
 | 40 | +         */  | 
 | 41 | +        'auto_discovery' => true,  | 
 | 42 | +    ],  | 
 | 43 | + | 
 | 44 | +    /**  | 
 | 45 | +     * ------------------------------------------------------------------------  | 
 | 46 | +     * Firebase Realtime Database  | 
 | 47 | +     * ------------------------------------------------------------------------  | 
 | 48 | +     */  | 
 | 49 | + | 
 | 50 | +    'database' => [  | 
 | 51 | + | 
 | 52 | +        /**  | 
 | 53 | +         * In most of the cases the project ID defined in the credentials file  | 
 | 54 | +         * determines the URL of your project's Realtime Database. If the  | 
 | 55 | +         * connection to the Realtime Database fails, you can override  | 
 | 56 | +         * its URL with the value you see at  | 
 | 57 | +         *  | 
 | 58 | +         * https://console.firebase.google.com/u/1/project/_/database  | 
 | 59 | +         *  | 
 | 60 | +         * Please make sure that you use a full URL like, for example,  | 
 | 61 | +         * https://my-project-id.firebaseio.com  | 
 | 62 | +         */  | 
 | 63 | + | 
 | 64 | +        'url' => env('FIREBASE_DATABASE_URL'),  | 
 | 65 | + | 
 | 66 | +    ],  | 
 | 67 | + | 
 | 68 | +    /**  | 
 | 69 | +     * ------------------------------------------------------------------------  | 
 | 70 | +     * Firebase Cloud Storage  | 
 | 71 | +     * ------------------------------------------------------------------------  | 
 | 72 | +     */  | 
 | 73 | + | 
 | 74 | +    'storage' => [  | 
 | 75 | + | 
 | 76 | +        /**  | 
 | 77 | +         * Your project's default storage bucket usually uses the project ID  | 
 | 78 | +         * as its name. If you have multiple storage buckets and want to  | 
 | 79 | +         * use another one as the default for your application, you can  | 
 | 80 | +         * override it here.  | 
 | 81 | +         */  | 
 | 82 | + | 
 | 83 | +        'default_bucket' => env('FIREBASE_STORAGE_DEFAULT_BUCKET'),  | 
 | 84 | + | 
 | 85 | +    ],  | 
 | 86 | + | 
 | 87 | +    /**  | 
 | 88 | +     * ------------------------------------------------------------------------  | 
 | 89 | +     * Caching  | 
 | 90 | +     * ------------------------------------------------------------------------  | 
 | 91 | +     *  | 
 | 92 | +     * The Firebase Admin SDK can cache some data returned from the Firebase  | 
 | 93 | +     * API, for example Google's public keys used to verify ID tokens.  | 
 | 94 | +     *  | 
 | 95 | +     */  | 
 | 96 | + | 
 | 97 | +    'cache_store' => env('FIREBASE_CACHE_STORE', 'file'),  | 
 | 98 | + | 
 | 99 | +];  | 
0 commit comments