diff --git a/src/Http/Request.php b/src/Http/Request.php index 5ddf48d..2a771aa 100755 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -774,11 +774,10 @@ public function browser($type = null) 'Safari'=>'Safari', 'Netscape'=>'Netscape' ]; - $browsers = config('browerser'); + $browsers = array_merge($browsers, (array) config('browerser', [])); foreach($browsers as $tag => $browser){ if (stripos($userAgent, $tag)) return $browser; } - return null; }