From 7e76f39e6c6d8793472d97e3b409f68551b09cb4 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 16 May 2017 18:50:41 +1000 Subject: [PATCH] Add app.name config Various other refittings --- config/app.php | 12 ++++++++++++ modules/backend/classes/Controller.php | 3 +-- modules/backend/widgets/Lists.php | 2 +- modules/system/providers.php | 1 - 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/config/app.php b/config/app.php index 87cc0b602..7e6474bc7 100644 --- a/config/app.php +++ b/config/app.php @@ -18,6 +18,18 @@ return [ 'debug' => true, + /* + |-------------------------------------------------------------------------- + | Application Name + |-------------------------------------------------------------------------- + | + | This value is the name of your application. This value is used when the + | framework needs to place the application's name in a notification or + | any other location as required by the application or its packages. + */ + + 'name' => 'October CMS', + /* |-------------------------------------------------------------------------- | Application URL diff --git a/modules/backend/classes/Controller.php b/modules/backend/classes/Controller.php index b8c82c176..b38417fb4 100644 --- a/modules/backend/classes/Controller.php +++ b/modules/backend/classes/Controller.php @@ -1,7 +1,6 @@ model->{$column->relation}(); - $countQuery = $relationObj->getRelationCountQuery($relationObj->getRelated()->newQueryWithoutScopes(), $query); + $countQuery = $relationObj->getRelationExistenceQuery($relationObj->getRelated()->newQueryWithoutScopes(), $query); $joinSql = $this->isColumnRelated($column, true) ? DbDongle::raw("group_concat(" . $sqlSelect . " separator ', ')") diff --git a/modules/system/providers.php b/modules/system/providers.php index 31ea6e7b0..bb395888e 100644 --- a/modules/system/providers.php +++ b/modules/system/providers.php @@ -25,7 +25,6 @@ return [ /* * October Rain providers */ - October\Rain\Foundation\Providers\ArtisanServiceProvider::class, October\Rain\Database\DatabaseServiceProvider::class, October\Rain\Halcyon\HalcyonServiceProvider::class, October\Rain\Filesystem\FilesystemServiceProvider::class,