diff --git a/app/helpers.php b/app/helpers.php
index 9f2f74c18..aca832ea5 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -92,10 +92,15 @@ function baseUrl($path, $forceAppDomain = false)
if ($isFullUrl && !$forceAppDomain) {
return $path;
}
+
$path = trim($path, '/');
+ $trimBase = rtrim(config('app.url'), '/');
// Remove non-specified domain if forced and we have a domain
if ($isFullUrl && $forceAppDomain) {
+ if (strpos($path, $trimBase) === 0) {
+ $path = trim(substr($path, strlen($trimBase) - 1));
+ }
$explodedPath = explode('/', $path);
$path = implode('/', array_splice($explodedPath, 3));
}
@@ -105,7 +110,7 @@ function baseUrl($path, $forceAppDomain = false)
return url($path);
}
- return rtrim(config('app.url'), '/') . '/' . $path;
+ return $trimBase . '/' . $path;
}
/**
diff --git a/composer.json b/composer.json
index 3c372da63..a34c65091 100644
--- a/composer.json
+++ b/composer.json
@@ -8,7 +8,7 @@
"php": ">=7.0.0",
"ext-tidy": "*",
"ext-dom": "*",
- "laravel/framework": "~5.5.42",
+ "laravel/framework": "~5.5.44",
"fideloper/proxy": "~3.3",
"intervention/image": "^2.4",
"laravel/socialite": "^3.0",
diff --git a/composer.lock b/composer.lock
index 6a92409dd..8b7657da2 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "content-hash": "eae00f50d183bb224c934683b06e8f9c",
+ "content-hash": "4a15ede09baa575d7accd7a4f66067fd",
"packages": [
{
"name": "aws/aws-sdk-php",
- "version": "3.64.10",
+ "version": "3.70.3",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
- "reference": "4aa66872c4428d0db08c861a34559b0923eaae23"
+ "reference": "8278052a097a4ebe2b798fab7e2e3c907bc01a47"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/4aa66872c4428d0db08c861a34559b0923eaae23",
- "reference": "4aa66872c4428d0db08c861a34559b0923eaae23",
+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/8278052a097a4ebe2b798fab7e2e3c907bc01a47",
+ "reference": "8278052a097a4ebe2b798fab7e2e3c907bc01a47",
"shasum": ""
},
"require": {
@@ -25,7 +25,7 @@
"ext-pcre": "*",
"ext-simplexml": "*",
"ext-spl": "*",
- "guzzlehttp/guzzle": "^5.3.1|^6.2.1",
+ "guzzlehttp/guzzle": "^5.3.3|^6.2.1",
"guzzlehttp/promises": "~1.0",
"guzzlehttp/psr7": "^1.4.1",
"mtdowling/jmespath.php": "~2.2",
@@ -38,6 +38,8 @@
"doctrine/cache": "~1.4",
"ext-dom": "*",
"ext-openssl": "*",
+ "ext-pcntl": "*",
+ "ext-sockets": "*",
"nette/neon": "^2.3",
"phpunit/phpunit": "^4.8.35|^5.4.3",
"psr/cache": "^1.0"
@@ -46,7 +48,8 @@
"aws/aws-php-sns-message-validator": "To validate incoming SNS notifications",
"doctrine/cache": "To use the DoctrineCacheAdapter",
"ext-curl": "To send requests using cURL",
- "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages"
+ "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages",
+ "ext-sockets": "To use client-side monitoring"
},
"type": "library",
"extra": {
@@ -84,26 +87,26 @@
"s3",
"sdk"
],
- "time": "2018-08-10T21:49:00+00:00"
+ "time": "2018-11-02T20:04:36+00:00"
},
{
"name": "barryvdh/laravel-dompdf",
- "version": "v0.8.2",
+ "version": "v0.8.3",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-dompdf.git",
- "reference": "7dcdecfa125c174d0abe723603633dc2756ea3af"
+ "reference": "46781d0304277845a19c09c169bc595fd182cce4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/7dcdecfa125c174d0abe723603633dc2756ea3af",
- "reference": "7dcdecfa125c174d0abe723603633dc2756ea3af",
+ "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/46781d0304277845a19c09c169bc595fd182cce4",
+ "reference": "46781d0304277845a19c09c169bc595fd182cce4",
"shasum": ""
},
"require": {
"dompdf/dompdf": "^0.8",
- "illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x",
- "php": ">=5.5.9"
+ "illuminate/support": "5.5.x|5.6.x|5.7.x",
+ "php": ">=7"
},
"type": "library",
"extra": {
@@ -140,27 +143,27 @@
"laravel",
"pdf"
],
- "time": "2018-02-07T17:43:25+00:00"
+ "time": "2018-08-31T13:25:44+00:00"
},
{
"name": "barryvdh/laravel-snappy",
- "version": "v0.4.1",
+ "version": "v0.4.3",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-snappy.git",
- "reference": "5f6e7f3ba15c867d1b8e2885d454110270616ebe"
+ "reference": "62bb5017b7004bf3e48bfed3d5c00d3dc6e60478"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/laravel-snappy/zipball/5f6e7f3ba15c867d1b8e2885d454110270616ebe",
- "reference": "5f6e7f3ba15c867d1b8e2885d454110270616ebe",
+ "url": "https://api.github.com/repos/barryvdh/laravel-snappy/zipball/62bb5017b7004bf3e48bfed3d5c00d3dc6e60478",
+ "reference": "62bb5017b7004bf3e48bfed3d5c00d3dc6e60478",
"shasum": ""
},
"require": {
- "illuminate/filesystem": "5.0.x|5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x",
- "illuminate/support": "5.0.x|5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x",
+ "illuminate/filesystem": "5.5.x|5.6.x|5.7.x",
+ "illuminate/support": "5.5.x|5.6.x|5.7.x",
"knplabs/knp-snappy": "^1",
- "php": ">=5.4.0"
+ "php": ">=7"
},
"type": "library",
"extra": {
@@ -201,7 +204,7 @@
"wkhtmltoimage",
"wkhtmltopdf"
],
- "time": "2018-02-08T15:58:26+00:00"
+ "time": "2018-09-06T10:14:15+00:00"
},
{
"name": "cogpowered/finediff",
@@ -788,16 +791,16 @@
},
{
"name": "egulias/email-validator",
- "version": "2.1.4",
+ "version": "2.1.6",
"source": {
"type": "git",
"url": "https://github.com/egulias/EmailValidator.git",
- "reference": "8790f594151ca6a2010c6218e09d96df67173ad3"
+ "reference": "0578b32b30b22de3e8664f797cf846fc9246f786"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/8790f594151ca6a2010c6218e09d96df67173ad3",
- "reference": "8790f594151ca6a2010c6218e09d96df67173ad3",
+ "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/0578b32b30b22de3e8664f797cf846fc9246f786",
+ "reference": "0578b32b30b22de3e8664f797cf846fc9246f786",
"shasum": ""
},
"require": {
@@ -841,7 +844,7 @@
"validation",
"validator"
],
- "time": "2018-04-10T10:11:19+00:00"
+ "time": "2018-09-25T20:47:26+00:00"
},
{
"name": "erusev/parsedown",
@@ -1314,16 +1317,16 @@
},
{
"name": "laravel/framework",
- "version": "v5.5.42",
+ "version": "v5.5.44",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
- "reference": "6550ae917b0c49a5915a52cd7c7eafd16fc0b538"
+ "reference": "00615aa27eb98f0ee6fb9f2160c6c60ae04abd1b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/framework/zipball/6550ae917b0c49a5915a52cd7c7eafd16fc0b538",
- "reference": "6550ae917b0c49a5915a52cd7c7eafd16fc0b538",
+ "url": "https://api.github.com/repos/laravel/framework/zipball/00615aa27eb98f0ee6fb9f2160c6c60ae04abd1b",
+ "reference": "00615aa27eb98f0ee6fb9f2160c6c60ae04abd1b",
"shasum": ""
},
"require": {
@@ -1444,20 +1447,20 @@
"framework",
"laravel"
],
- "time": "2018-08-08T18:22:44+00:00"
+ "time": "2018-10-04T14:51:24+00:00"
},
{
"name": "laravel/socialite",
- "version": "v3.0.12",
+ "version": "v3.2.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/socialite.git",
- "reference": "b5f465847b1d637efa86bbfe2fc1c9d2bd12f60f"
+ "reference": "7194c0cd9fb2ce449669252b8ec316b85b7de481"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/socialite/zipball/b5f465847b1d637efa86bbfe2fc1c9d2bd12f60f",
- "reference": "b5f465847b1d637efa86bbfe2fc1c9d2bd12f60f",
+ "url": "https://api.github.com/repos/laravel/socialite/zipball/7194c0cd9fb2ce449669252b8ec316b85b7de481",
+ "reference": "7194c0cd9fb2ce449669252b8ec316b85b7de481",
"shasum": ""
},
"require": {
@@ -1466,7 +1469,7 @@
"illuminate/http": "~5.4",
"illuminate/support": "~5.4",
"league/oauth1-client": "~1.0",
- "php": ">=5.4.0"
+ "php": ">=5.6.4"
},
"require-dev": {
"mockery/mockery": "~0.9",
@@ -1502,36 +1505,37 @@
}
],
"description": "Laravel wrapper around OAuth 1 & OAuth 2 libraries.",
+ "homepage": "https://laravel.com",
"keywords": [
"laravel",
"oauth"
],
- "time": "2018-06-01T15:06:47+00:00"
+ "time": "2018-10-18T03:39:04+00:00"
},
{
"name": "league/flysystem",
- "version": "1.0.45",
+ "version": "1.0.48",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
- "reference": "a99f94e63b512d75f851b181afcdf0ee9ebef7e6"
+ "reference": "a6ded5b2f6055e2db97b4b859fdfca2b952b78aa"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a99f94e63b512d75f851b181afcdf0ee9ebef7e6",
- "reference": "a99f94e63b512d75f851b181afcdf0ee9ebef7e6",
+ "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a6ded5b2f6055e2db97b4b859fdfca2b952b78aa",
+ "reference": "a6ded5b2f6055e2db97b4b859fdfca2b952b78aa",
"shasum": ""
},
"require": {
+ "ext-fileinfo": "*",
"php": ">=5.5.9"
},
"conflict": {
"league/flysystem-sftp": "<1.0.6"
},
"require-dev": {
- "ext-fileinfo": "*",
"phpspec/phpspec": "^3.4",
- "phpunit/phpunit": "^5.7"
+ "phpunit/phpunit": "^5.7.10"
},
"suggest": {
"ext-fileinfo": "Required for MimeType",
@@ -1590,20 +1594,20 @@
"sftp",
"storage"
],
- "time": "2018-05-07T08:44:23+00:00"
+ "time": "2018-10-15T13:53:10+00:00"
},
{
"name": "league/flysystem-aws-s3-v3",
- "version": "1.0.19",
+ "version": "1.0.21",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git",
- "reference": "f135691ef6761542af301b7c9880f140fb12dc74"
+ "reference": "43523fec10a831ea48bedb3277e3f3fa218f4e49"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/f135691ef6761542af301b7c9880f140fb12dc74",
- "reference": "f135691ef6761542af301b7c9880f140fb12dc74",
+ "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/43523fec10a831ea48bedb3277e3f3fa218f4e49",
+ "reference": "43523fec10a831ea48bedb3277e3f3fa218f4e49",
"shasum": ""
},
"require": {
@@ -1637,7 +1641,7 @@
}
],
"description": "Flysystem adapter for the AWS S3 SDK v3.x",
- "time": "2018-03-27T20:33:59+00:00"
+ "time": "2018-10-08T07:53:55+00:00"
},
{
"name": "league/oauth1-client",
@@ -1881,16 +1885,16 @@
},
{
"name": "nesbot/carbon",
- "version": "1.33.0",
+ "version": "1.34.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "55667c1007a99e82030874b1bb14d24d07108413"
+ "reference": "1dbd3cb01c5645f3e7deda7aa46ef780d95fcc33"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/55667c1007a99e82030874b1bb14d24d07108413",
- "reference": "55667c1007a99e82030874b1bb14d24d07108413",
+ "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/1dbd3cb01c5645f3e7deda7aa46ef780d95fcc33",
+ "reference": "1dbd3cb01c5645f3e7deda7aa46ef780d95fcc33",
"shasum": ""
},
"require": {
@@ -1932,7 +1936,7 @@
"datetime",
"time"
],
- "time": "2018-08-07T08:39:47+00:00"
+ "time": "2018-09-20T19:36:25+00:00"
},
{
"name": "paragonie/random_compat",
@@ -2465,16 +2469,16 @@
},
{
"name": "socialiteproviders/gitlab",
- "version": "v3.0.3",
+ "version": "v3.1",
"source": {
"type": "git",
"url": "https://github.com/SocialiteProviders/GitLab.git",
- "reference": "7839d22fad3179cd77f1b35af62f81d15d78e93b"
+ "reference": "69e537f6192ca15483e98b8662495384f44299ca"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/SocialiteProviders/GitLab/zipball/7839d22fad3179cd77f1b35af62f81d15d78e93b",
- "reference": "7839d22fad3179cd77f1b35af62f81d15d78e93b",
+ "url": "https://api.github.com/repos/SocialiteProviders/GitLab/zipball/69e537f6192ca15483e98b8662495384f44299ca",
+ "reference": "69e537f6192ca15483e98b8662495384f44299ca",
"shasum": ""
},
"require": {
@@ -2498,7 +2502,7 @@
}
],
"description": "GitLab OAuth2 Provider for Laravel Socialite",
- "time": "2018-06-20T11:00:01+00:00"
+ "time": "2018-06-27T05:10:32+00:00"
},
{
"name": "socialiteproviders/manager",
@@ -2699,16 +2703,16 @@
},
{
"name": "swiftmailer/swiftmailer",
- "version": "v6.1.2",
+ "version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git",
- "reference": "7d760881d266d63c5e7a1155cbcf2ac656a31ca8"
+ "reference": "8ddcb66ac10c392d3beb54829eef8ac1438595f4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/7d760881d266d63c5e7a1155cbcf2ac656a31ca8",
- "reference": "7d760881d266d63c5e7a1155cbcf2ac656a31ca8",
+ "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/8ddcb66ac10c392d3beb54829eef8ac1438595f4",
+ "reference": "8ddcb66ac10c392d3beb54829eef8ac1438595f4",
"shasum": ""
},
"require": {
@@ -2754,7 +2758,7 @@
"mail",
"mailer"
],
- "time": "2018-07-13T07:04:35+00:00"
+ "time": "2018-09-11T07:12:52+00:00"
},
{
"name": "symfony/console",
@@ -3187,7 +3191,7 @@
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.9.0",
+ "version": "v1.10.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
@@ -3245,16 +3249,16 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.9.0",
+ "version": "v1.10.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
+ "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
- "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
+ "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
"shasum": ""
},
"require": {
@@ -3300,7 +3304,7 @@
"portable",
"shim"
],
- "time": "2018-08-06T14:22:27+00:00"
+ "time": "2018-09-21T13:07:52+00:00"
},
{
"name": "symfony/process",
@@ -3663,29 +3667,29 @@
"packages-dev": [
{
"name": "barryvdh/laravel-debugbar",
- "version": "v3.1.5",
+ "version": "v3.2.0",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git",
- "reference": "d3cdca2ad6cc6e67735b4a63e7551c690a497f5f"
+ "reference": "5b68f3972083a7eeec0d6f161962fcda71a127c0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/d3cdca2ad6cc6e67735b4a63e7551c690a497f5f",
- "reference": "d3cdca2ad6cc6e67735b4a63e7551c690a497f5f",
+ "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/5b68f3972083a7eeec0d6f161962fcda71a127c0",
+ "reference": "5b68f3972083a7eeec0d6f161962fcda71a127c0",
"shasum": ""
},
"require": {
- "illuminate/routing": "5.5.x|5.6.x",
- "illuminate/session": "5.5.x|5.6.x",
- "illuminate/support": "5.5.x|5.6.x",
+ "illuminate/routing": "5.5.x|5.6.x|5.7.x",
+ "illuminate/session": "5.5.x|5.6.x|5.7.x",
+ "illuminate/support": "5.5.x|5.6.x|5.7.x",
"maximebf/debugbar": "~1.15.0",
"php": ">=7.0",
"symfony/debug": "^3|^4",
"symfony/finder": "^3|^4"
},
"require-dev": {
- "illuminate/framework": "5.5.x"
+ "laravel/framework": "5.5.x"
},
"type": "library",
"extra": {
@@ -3727,37 +3731,38 @@
"profiler",
"webprofiler"
],
- "time": "2018-05-03T18:27:04+00:00"
+ "time": "2018-08-22T11:06:19+00:00"
},
{
"name": "barryvdh/laravel-ide-helper",
- "version": "v2.4.3",
+ "version": "v2.5.1",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-ide-helper.git",
- "reference": "5c304db44fba8e9c4aa0c09739e59f7be7736fdd"
+ "reference": "7db1843473e1562d8e0490b51db847d3a1415140"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/5c304db44fba8e9c4aa0c09739e59f7be7736fdd",
- "reference": "5c304db44fba8e9c4aa0c09739e59f7be7736fdd",
+ "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/7db1843473e1562d8e0490b51db847d3a1415140",
+ "reference": "7db1843473e1562d8e0490b51db847d3a1415140",
"shasum": ""
},
"require": {
"barryvdh/reflection-docblock": "^2.0.4",
- "illuminate/console": "^5.0,<5.7",
- "illuminate/filesystem": "^5.0,<5.7",
- "illuminate/support": "^5.0,<5.7",
- "php": ">=5.4.0",
- "symfony/class-loader": "^2.3|^3.0"
+ "composer/composer": "^1.6",
+ "illuminate/console": "^5.5,<5.8",
+ "illuminate/filesystem": "^5.5,<5.8",
+ "illuminate/support": "^5.5,<5.8",
+ "php": ">=7"
},
"require-dev": {
"doctrine/dbal": "~2.3",
- "illuminate/config": "^5.0,<5.7",
- "illuminate/view": "^5.0,<5.7",
+ "illuminate/config": "^5.1,<5.8",
+ "illuminate/view": "^5.1,<5.8",
+ "phpro/grumphp": "^0.14",
"phpunit/phpunit": "4.*",
"scrutinizer/ocular": "~1.1",
- "squizlabs/php_codesniffer": "~2.3"
+ "squizlabs/php_codesniffer": "^3"
},
"suggest": {
"doctrine/dbal": "Load information from the database about models for phpdocs (~2.3)"
@@ -3765,7 +3770,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.3-dev"
+ "dev-master": "2.5-dev"
},
"laravel": {
"providers": [
@@ -3800,7 +3805,7 @@
"phpstorm",
"sublime"
],
- "time": "2018-02-08T07:56:07+00:00"
+ "time": "2018-09-06T18:41:09+00:00"
},
{
"name": "barryvdh/reflection-docblock",
@@ -3851,6 +3856,309 @@
],
"time": "2016-06-13T19:28:20+00:00"
},
+ {
+ "name": "composer/ca-bundle",
+ "version": "1.1.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/ca-bundle.git",
+ "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/ca-bundle/zipball/8afa52cd417f4ec417b4bfe86b68106538a87660",
+ "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660",
+ "shasum": ""
+ },
+ "require": {
+ "ext-openssl": "*",
+ "ext-pcre": "*",
+ "php": "^5.3.2 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
+ "psr/log": "^1.0",
+ "symfony/process": "^2.5 || ^3.0 || ^4.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\CaBundle\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
+ "keywords": [
+ "cabundle",
+ "cacert",
+ "certificate",
+ "ssl",
+ "tls"
+ ],
+ "time": "2018-10-18T06:09:13+00:00"
+ },
+ {
+ "name": "composer/composer",
+ "version": "1.7.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/composer.git",
+ "reference": "e965b9aaa8854c3067f1ed2ae45f436572d73eb7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/composer/zipball/e965b9aaa8854c3067f1ed2ae45f436572d73eb7",
+ "reference": "e965b9aaa8854c3067f1ed2ae45f436572d73eb7",
+ "shasum": ""
+ },
+ "require": {
+ "composer/ca-bundle": "^1.0",
+ "composer/semver": "^1.0",
+ "composer/spdx-licenses": "^1.2",
+ "composer/xdebug-handler": "^1.1",
+ "justinrainbow/json-schema": "^3.0 || ^4.0 || ^5.0",
+ "php": "^5.3.2 || ^7.0",
+ "psr/log": "^1.0",
+ "seld/jsonlint": "^1.4",
+ "seld/phar-utils": "^1.0",
+ "symfony/console": "^2.7 || ^3.0 || ^4.0",
+ "symfony/filesystem": "^2.7 || ^3.0 || ^4.0",
+ "symfony/finder": "^2.7 || ^3.0 || ^4.0",
+ "symfony/process": "^2.7 || ^3.0 || ^4.0"
+ },
+ "conflict": {
+ "symfony/console": "2.8.38"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7",
+ "phpunit/phpunit-mock-objects": "^2.3 || ^3.0"
+ },
+ "suggest": {
+ "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
+ "ext-zip": "Enabling the zip extension allows you to unzip archives",
+ "ext-zlib": "Allow gzip compression of HTTP requests"
+ },
+ "bin": [
+ "bin/composer"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.7-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\": "src/Composer"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nils Adermann",
+ "email": "naderman@naderman.de",
+ "homepage": "http://www.naderman.de"
+ },
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.",
+ "homepage": "https://getcomposer.org/",
+ "keywords": [
+ "autoload",
+ "dependency",
+ "package"
+ ],
+ "time": "2018-11-01T09:05:06+00:00"
+ },
+ {
+ "name": "composer/semver",
+ "version": "1.4.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/semver.git",
+ "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573",
+ "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.5 || ^5.0.5",
+ "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Semver\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nils Adermann",
+ "email": "naderman@naderman.de",
+ "homepage": "http://www.naderman.de"
+ },
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ },
+ {
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com",
+ "homepage": "http://robbast.nl"
+ }
+ ],
+ "description": "Semver library that offers utilities, version constraint parsing and validation.",
+ "keywords": [
+ "semantic",
+ "semver",
+ "validation",
+ "versioning"
+ ],
+ "time": "2016-08-30T16:08:34+00:00"
+ },
+ {
+ "name": "composer/spdx-licenses",
+ "version": "1.5.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/spdx-licenses.git",
+ "reference": "7a9556b22bd9d4df7cad89876b00af58ef20d3a2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/7a9556b22bd9d4df7cad89876b00af58ef20d3a2",
+ "reference": "7a9556b22bd9d4df7cad89876b00af58ef20d3a2",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
+ "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Spdx\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nils Adermann",
+ "email": "naderman@naderman.de",
+ "homepage": "http://www.naderman.de"
+ },
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ },
+ {
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com",
+ "homepage": "http://robbast.nl"
+ }
+ ],
+ "description": "SPDX licenses list and validation library.",
+ "keywords": [
+ "license",
+ "spdx",
+ "validator"
+ ],
+ "time": "2018-11-01T09:45:54+00:00"
+ },
+ {
+ "name": "composer/xdebug-handler",
+ "version": "1.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/xdebug-handler.git",
+ "reference": "b8e9745fb9b06ea6664d8872c4505fb16df4611c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/b8e9745fb9b06ea6664d8872c4505fb16df4611c",
+ "reference": "b8e9745fb9b06ea6664d8872c4505fb16df4611c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0",
+ "psr/log": "^1.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Composer\\XdebugHandler\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "John Stevenson",
+ "email": "john-stevenson@blueyonder.co.uk"
+ }
+ ],
+ "description": "Restarts a process without xdebug.",
+ "keywords": [
+ "Xdebug",
+ "performance"
+ ],
+ "time": "2018-08-31T19:07:57+00:00"
+ },
{
"name": "doctrine/instantiator",
"version": "1.0.5",
@@ -3907,16 +4215,16 @@
},
{
"name": "filp/whoops",
- "version": "2.2.0",
+ "version": "2.3.1",
"source": {
"type": "git",
"url": "https://github.com/filp/whoops.git",
- "reference": "181c4502d8f34db7aed7bfe88d4f87875b8e947a"
+ "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/filp/whoops/zipball/181c4502d8f34db7aed7bfe88d4f87875b8e947a",
- "reference": "181c4502d8f34db7aed7bfe88d4f87875b8e947a",
+ "url": "https://api.github.com/repos/filp/whoops/zipball/bc0fd11bc455cc20ee4b5edabc63ebbf859324c7",
+ "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7",
"shasum": ""
},
"require": {
@@ -3935,7 +4243,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.1-dev"
+ "dev-master": "2.2-dev"
}
},
"autoload": {
@@ -3964,7 +4272,7 @@
"throwable",
"whoops"
],
- "time": "2018-03-03T17:56:25+00:00"
+ "time": "2018-10-23T09:00:00+00:00"
},
{
"name": "fzaninotto/faker",
@@ -4064,6 +4372,72 @@
],
"time": "2016-01-20T08:20:44+00:00"
},
+ {
+ "name": "justinrainbow/json-schema",
+ "version": "5.2.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/justinrainbow/json-schema.git",
+ "reference": "8560d4314577199ba51bf2032f02cd1315587c23"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/8560d4314577199ba51bf2032f02cd1315587c23",
+ "reference": "8560d4314577199ba51bf2032f02cd1315587c23",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^2.1",
+ "json-schema/json-schema-test-suite": "1.2.0",
+ "phpunit/phpunit": "^4.8.35"
+ },
+ "bin": [
+ "bin/validate-json"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "JsonSchema\\": "src/JsonSchema/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bruno Prieto Reis",
+ "email": "bruno.p.reis@gmail.com"
+ },
+ {
+ "name": "Justin Rainbow",
+ "email": "justin.rainbow@gmail.com"
+ },
+ {
+ "name": "Igor Wiedler",
+ "email": "igor@wiedler.ch"
+ },
+ {
+ "name": "Robert Schönthal",
+ "email": "seroscho@googlemail.com"
+ }
+ ],
+ "description": "A library to validate a json schema.",
+ "homepage": "https://github.com/justinrainbow/json-schema",
+ "keywords": [
+ "json",
+ "schema"
+ ],
+ "time": "2018-02-14T22:26:30+00:00"
+ },
{
"name": "laravel/browser-kit-testing",
"version": "v2.0.1",
@@ -4175,16 +4549,16 @@
},
{
"name": "mockery/mockery",
- "version": "1.1.0",
+ "version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/mockery/mockery.git",
- "reference": "99e29d3596b16dabe4982548527d5ddf90232e99"
+ "reference": "100633629bf76d57430b86b7098cd6beb996a35a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/mockery/mockery/zipball/99e29d3596b16dabe4982548527d5ddf90232e99",
- "reference": "99e29d3596b16dabe4982548527d5ddf90232e99",
+ "url": "https://api.github.com/repos/mockery/mockery/zipball/100633629bf76d57430b86b7098cd6beb996a35a",
+ "reference": "100633629bf76d57430b86b7098cd6beb996a35a",
"shasum": ""
},
"require": {
@@ -4193,8 +4567,7 @@
"php": ">=5.6.0"
},
"require-dev": {
- "phpdocumentor/phpdocumentor": "^2.9",
- "phpunit/phpunit": "~5.7.10|~6.5"
+ "phpunit/phpunit": "~5.7.10|~6.5|~7.0"
},
"type": "library",
"extra": {
@@ -4237,7 +4610,7 @@
"test double",
"testing"
],
- "time": "2018-05-08T08:54:48+00:00"
+ "time": "2018-10-02T21:52:37+00:00"
},
{
"name": "myclabs/deep-copy",
@@ -4852,16 +5225,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "6.5.11",
+ "version": "6.5.13",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "7bab54cb366076023bbf457a2a0d513332cd40f2"
+ "reference": "0973426fb012359b2f18d3bd1e90ef1172839693"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7bab54cb366076023bbf457a2a0d513332cd40f2",
- "reference": "7bab54cb366076023bbf457a2a0d513332cd40f2",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0973426fb012359b2f18d3bd1e90ef1172839693",
+ "reference": "0973426fb012359b2f18d3bd1e90ef1172839693",
"shasum": ""
},
"require": {
@@ -4932,7 +5305,7 @@
"testing",
"xunit"
],
- "time": "2018-08-07T07:05:35+00:00"
+ "time": "2018-09-08T15:10:43+00:00"
},
{
"name": "phpunit/phpunit-mock-objects",
@@ -5553,17 +5926,110 @@
"time": "2016-10-03T07:35:21+00:00"
},
{
- "name": "squizlabs/php_codesniffer",
- "version": "3.3.1",
+ "name": "seld/jsonlint",
+ "version": "1.7.1",
"source": {
"type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "628a481780561150481a9ec74709092b9759b3ec"
+ "url": "https://github.com/Seldaek/jsonlint.git",
+ "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/628a481780561150481a9ec74709092b9759b3ec",
- "reference": "628a481780561150481a9ec74709092b9759b3ec",
+ "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/d15f59a67ff805a44c50ea0516d2341740f81a38",
+ "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
+ },
+ "bin": [
+ "bin/jsonlint"
+ ],
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Seld\\JsonLint\\": "src/Seld/JsonLint/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "JSON Linter",
+ "keywords": [
+ "json",
+ "linter",
+ "parser",
+ "validator"
+ ],
+ "time": "2018-01-24T12:46:19+00:00"
+ },
+ {
+ "name": "seld/phar-utils",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/Seldaek/phar-utils.git",
+ "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/7009b5139491975ef6486545a39f3e6dad5ac30a",
+ "reference": "7009b5139491975ef6486545a39f3e6dad5ac30a",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Seld\\PharUtils\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be"
+ }
+ ],
+ "description": "PHAR file format utilities, for when PHP phars you up",
+ "keywords": [
+ "phra"
+ ],
+ "time": "2015-10-13T18:44:15+00:00"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "3.3.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
+ "reference": "6ad28354c04b364c3c71a34e4a18b629cc3b231e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/6ad28354c04b364c3c71a34e4a18b629cc3b231e",
+ "reference": "6ad28354c04b364c3c71a34e4a18b629cc3b231e",
"shasum": ""
},
"require": {
@@ -5601,63 +6067,7 @@
"phpcs",
"standards"
],
- "time": "2018-07-26T23:47:18+00:00"
- },
- {
- "name": "symfony/class-loader",
- "version": "v3.3.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/class-loader.git",
- "reference": "386a294d621576302e7cc36965d6ed53b8c73c4f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/class-loader/zipball/386a294d621576302e7cc36965d6ed53b8c73c4f",
- "reference": "386a294d621576302e7cc36965d6ed53b8c73c4f",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.9"
- },
- "require-dev": {
- "symfony/finder": "~2.8|~3.0",
- "symfony/polyfill-apcu": "~1.1"
- },
- "suggest": {
- "symfony/polyfill-apcu": "For using ApcClassLoader on HHVM"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\ClassLoader\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony ClassLoader Component",
- "homepage": "https://symfony.com",
- "time": "2017-06-02T09:51:43+00:00"
+ "time": "2018-09-23T23:08:17+00:00"
},
{
"name": "symfony/dom-crawler",
@@ -5715,6 +6125,55 @@
"homepage": "https://symfony.com",
"time": "2017-01-21T17:13:55+00:00"
},
+ {
+ "name": "symfony/filesystem",
+ "version": "v3.3.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/filesystem.git",
+ "reference": "427987eb4eed764c3b6e38d52a0f87989e010676"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/427987eb4eed764c3b6e38d52a0f87989e010676",
+ "reference": "427987eb4eed764c3b6e38d52a0f87989e010676",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.5.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.3-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Filesystem\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Filesystem Component",
+ "homepage": "https://symfony.com",
+ "time": "2017-07-11T07:17:58+00:00"
+ },
{
"name": "theseer/tokenizer",
"version": "1.1.0",
diff --git a/phpunit.xml b/phpunit.xml
index 4c1e4f66c..efed0070e 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -42,5 +42,6 @@
+
diff --git a/tests/HelpersTest.php b/tests/HelpersTest.php
new file mode 100644
index 000000000..30b0085d6
--- /dev/null
+++ b/tests/HelpersTest.php
@@ -0,0 +1,19 @@
+set('app.url', 'http://example.com/bookstack');
+ $result = baseUrl('/');
+ $this->assertEquals('http://example.com/bookstack/', $result);
+ }
+
+ public function test_base_url_takes_extra_path_into_account_on_forced_domain()
+ {
+ config()->set('app.url', 'http://example.com/bookstack');
+ $result = baseUrl('http://example.com/bookstack/', true);
+ $this->assertEquals('http://example.com/bookstack/', $result);
+ }
+}
\ No newline at end of file