diff --git a/config/admin.php b/config/admin.php index aa287af0c..a68e74326 100755 --- a/config/admin.php +++ b/config/admin.php @@ -114,7 +114,7 @@ | If your page is going to be accessed via https, set it to `true`. | */ - 'https' => env('ADMIN_HTTPS', false), + 'https' => env('ADMIN_HTTPS'), /* |-------------------------------------------------------------------------- diff --git a/src/Support/helpers.php b/src/Support/helpers.php index 7c17986ef..8257ba77d 100755 --- a/src/Support/helpers.php +++ b/src/Support/helpers.php @@ -267,7 +267,7 @@ function admin_url($path = '', $parameters = [], $secure = null) return $path; } - $secure = $secure ?: (config('admin.https') || config('admin.secure')); + $secure = $secure ?: config('admin.https') ?: config('admin.secure'); return url(admin_base_path($path), $parameters, $secure); }