diff --git a/src/ToolServiceProvider.php b/src/ToolServiceProvider.php index 9894d9c..459ac5a 100644 --- a/src/ToolServiceProvider.php +++ b/src/ToolServiceProvider.php @@ -17,9 +17,9 @@ class ToolServiceProvider extends ServiceProvider */ public function boot() { - $this->translations(); - + $this->loadTranslations(); $this->loadViewsFrom(__DIR__ . '/../resources/views', 'nova-settings'); + $this->loadMigrationsFrom(__DIR__ '/../database/migrations'); $this->registerRoutes(); @@ -44,7 +44,7 @@ protected function registerRoutes() ->group(__DIR__ . '/../routes/api.php'); } - protected function translations() + protected function loadTranslations() { if ($this->app->runningInConsole()) { $this->publishes([__DIR__ . '/../resources/lang' => resource_path('lang/vendor/nova-settings')], 'translations');