Update to Laravel 5.7 (PHP 7.3 support) (#9800)

* Move assets to 5.7 location

* Add 5.7 SVGs

* add cache data dir

* update QUEUE_DRIVER -> QUEUE_CONNECTION

* Update trusted proxy config

* update composer.json

* 5.5 command loading

* @php and @endphp can't be inline

* Laravel 5.6 logging, Nice!

* Update blade directives

* improved redirects

* remove unneeded service providers

* Improved debugbar loading

* no need to emulate renderable exceptions anymore

* merge updated 5.7 files (WIP)

* Enable CSRF

* database_path() call causes issue in init.php

* fix old testcase name

* generic phpunit 7 fixes

* add missed file_get_contents
Keep migrations table content

* fix duplicate key

* Drop old php versions from travis-ci

* remove hhvm

* fix code climate message

* remove use of deprecated function assertInternalType

* Disable CSRF, we'll enable it separately.
All forms need to be updated to work.

* Update document references
This commit is contained in:
Tony Murray
2019-02-12 17:45:04 -06:00
committed by GitHub
parent 25954ccda6
commit e18f4522d5
70 changed files with 3056 additions and 1330 deletions

View File

@@ -12,7 +12,7 @@
*/
$app = new Illuminate\Foundation\Application(
realpath(__DIR__.'/../')
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);
/*
@@ -41,11 +41,6 @@ $app->singleton(
App\Exceptions\Handler::class
);
$app->configureMonologUsing(function (Monolog\Logger $logger) use ($app) {
$path = config('app.log') ?: $app->basePath('logs/librenms.log');
$logger->pushHandler(new \Monolog\Handler\StreamHandler($path, \Monolog\Logger::toMonologLevel(config('app.log_level', 'debug'))));
});
/*
|--------------------------------------------------------------------------
| Return The Application