From 38c0019feb5c13f95d41a5d8d8a21cc3c5c869b2 Mon Sep 17 00:00:00 2001 From: Daiyrbek Artelov <4unkur@mail.ru> Date: Thu, 18 Jul 2019 11:04:54 +0600 Subject: [PATCH] Ability to publish vendor views --- src/ToolServiceProvider.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ToolServiceProvider.php b/src/ToolServiceProvider.php index bbad19a..282ea55 100644 --- a/src/ToolServiceProvider.php +++ b/src/ToolServiceProvider.php @@ -23,6 +23,10 @@ public function boot() __DIR__.'/../resources/lang' => resource_path('lang/vendor/nova-permission-tool'), ], 'nova-permission-tool-lang'); + $this->publishes([ + __DIR__.'/../resources/views' => resource_path('views/vendor/nova-permission-tool'), + ], 'nova-permission-tool-views'); + $this->app->booted(function () { $this->routes(); });