From aeb2f00ca2c509bf89fa3a316c6ed20ba2a7e1cb Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 21 Feb 2019 19:39:04 +0100 Subject: [PATCH] wip #2413 @1 --- composer.json | 5 +++-- src/Cubist/Front/SayHello.php | 10 ---------- src/FrontServiceProvider.php | 32 ++++++++++++++++++++++++++++++++ src/config/cubist-front.php | 1 + 4 files changed, 36 insertions(+), 12 deletions(-) delete mode 100644 src/Cubist/Front/SayHello.php create mode 100644 src/FrontServiceProvider.php create mode 100644 src/config/cubist-front.php diff --git a/composer.json b/composer.json index 4baae91..3b055b4 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ } ], "require": { - "php": ">=5.4.0" + "php": ">=5.4.0", + "laravel/framework": "5.8.x-dev" }, "repositories": [ { @@ -24,4 +25,4 @@ "url": "https:\/\/composer.cubedesigners.com\/" } ] -} \ No newline at end of file +} diff --git a/src/Cubist/Front/SayHello.php b/src/Cubist/Front/SayHello.php deleted file mode 100644 index c413e6f..0000000 --- a/src/Cubist/Front/SayHello.php +++ /dev/null @@ -1,10 +0,0 @@ -loadViewsFrom($customViewsFolder, 'cubist'); + } + // - then the stock views that come with the package, in case a published view might be missing + $this->loadViewsFrom(realpath(__DIR__.'/resources/views'), 'cubist'); + + // publish config file + $this->publishes([__DIR__.'/config/cubist-front.php' => config_path('cubist-front.php')], 'config'); + // publish the views + $this->publishes([__DIR__.'/resources/views' => resource_path('views/vendor/backpack/backupmanager')], 'views'); + } +} \ No newline at end of file diff --git a/src/config/cubist-front.php b/src/config/cubist-front.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/src/config/cubist-front.php @@ -0,0 +1 @@ +