From e8210939deda6656a8c67ab04337c08dc081a4a8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 28 Feb 2020 20:02:40 +0100 Subject: [PATCH] wip #3439 @1 --- src/app/Console/Commands/InstallCommand.php | 1 + .../Http/Controllers/CubistRedirectToAdminController.php | 6 +++++- src/resources/views/fields/select2_from_array.blade.php | 6 +++--- src/resources/views/fields/tags.blade.php | 6 +++--- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/app/Console/Commands/InstallCommand.php b/src/app/Console/Commands/InstallCommand.php index ae00f84..0aafc97 100644 --- a/src/app/Console/Commands/InstallCommand.php +++ b/src/app/Console/Commands/InstallCommand.php @@ -20,6 +20,7 @@ class InstallCommand extends CubistCommand $commands = [ 'Update Cubist' => ['php artisan cubist:update'], 'Install backpack' => ['php artisan backpack:install'], + 'Publish backpack assets' => ['php artisan vendor:publish --provider="Backpack\CRUD\BackpackServiceProvider" --tag="minimum"'], 'Install backpack addons' => [ // BackupManager 'php artisan vendor:publish --provider="Backpack\BackupManager\BackupManagerServiceProvider"', diff --git a/src/app/Http/Controllers/CubistRedirectToAdminController.php b/src/app/Http/Controllers/CubistRedirectToAdminController.php index 80c2993..bc7f606 100644 --- a/src/app/Http/Controllers/CubistRedirectToAdminController.php +++ b/src/app/Http/Controllers/CubistRedirectToAdminController.php @@ -14,7 +14,11 @@ class CubistRedirectToAdminController extends CubistFrontController public function catchall(Request $request, $main = '', $subs = '') { - return $this->_redirectToAdmin(); + $path = trim($main . '/' . $subs, '/'); + if (!$path) { + return $this->_redirectToAdmin(); + } + return $this->_404(); } protected function _redirectToAdmin() diff --git a/src/resources/views/fields/select2_from_array.blade.php b/src/resources/views/fields/select2_from_array.blade.php index 54223bf..59af16c 100644 --- a/src/resources/views/fields/select2_from_array.blade.php +++ b/src/resources/views/fields/select2_from_array.blade.php @@ -63,17 +63,17 @@ {{-- FIELD CSS - will be loaded in the after_styles section --}} @push('crud_fields_styles') - @endpush {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') - + +