From 58f07c22a28d4e697f4b9dbb232d44f341247c34 Mon Sep 17 00:00:00 2001 From: Virgil-Adrian Teaca Date: Mon, 23 Jul 2018 03:33:47 +0300 Subject: [PATCH] Overall improvements --- app/Platform/Bootstrap.php | 2 +- app/Providers/RouteServiceProvider.php | 2 +- {app => shared/Pagination}/Middleware/SetupRoutePagination.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename {app => shared/Pagination}/Middleware/SetupRoutePagination.php (98%) diff --git a/app/Platform/Bootstrap.php b/app/Platform/Bootstrap.php index 9cece61691..c34f09d4fe 100644 --- a/app/Platform/Bootstrap.php +++ b/app/Platform/Bootstrap.php @@ -14,7 +14,7 @@ // Define The Application Version //-------------------------------------------------------------------------- -define('VERSION', '4.0.75'); +define('VERSION', '4.0.76'); //-------------------------------------------------------------------------- // Set PHP Error Reporting Options diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 86cf871918..b2b6f93fed 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -28,7 +28,7 @@ public function boot(Router $router) $router->macro('paginate', function ($uri, $action, $pageName = 'page') use ($router) { return $router->get($uri .'/{pageQuery?}', $action) - ->middleware('App\Middleware\SetupRoutePagination') + ->middleware('Shared\Pagination\Middleware\SetupRoutePagination') ->where('pageQuery', $pageName .'/[0-9]+'); }); diff --git a/app/Middleware/SetupRoutePagination.php b/shared/Pagination/Middleware/SetupRoutePagination.php similarity index 98% rename from app/Middleware/SetupRoutePagination.php rename to shared/Pagination/Middleware/SetupRoutePagination.php index 54d157fd94..1afbd65bd3 100644 --- a/app/Middleware/SetupRoutePagination.php +++ b/shared/Pagination/Middleware/SetupRoutePagination.php @@ -1,6 +1,6 @@