I have one laravel api for two different apps which has different onesignal keys, I was wondering if it is possible to send a push notification depending on the keys I want to use.
In config/services I have:
'onesignal' => [
'app_id' => env('ONESIGNAL_APP_ID_1'),
'rest_api_key' => env('ONESIGNAL_REST_API_KEY_1')
],
In .env I have the two keys, how can I switch them?
ONESIGNAL_APP_ID_1='xxx'
ONESIGNAL_REST_API_KEY_1='xxx'
ONESIGNAL_APP_ID_2='yyy'
ONESIGNAL_REST_API_KEY_2='yyy'