Skip to content

Commit 314497a

Browse files
author
Davi Nunes
committed
Dynamic config support
1 parent 526b8bf commit 314497a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Davibennun/LaravelPushNotification/PushNotification.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ class PushNotification {
44

55
public function app($appName)
66
{
7-
return new App(\Config::get('laravel-push-notification::'.$appName));
7+
$config = is_array($appName) ? $appName : \Config::get('laravel-push-notification::'.$appName);
8+
return new App($config);
89
}
910

1011
public function Message()

0 commit comments

Comments
 (0)