Skip to content

Commit

Permalink
Automatically load migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Mar 2, 2020
1 parent 5b22e07 commit 3fd2a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ToolServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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');
Expand Down

0 comments on commit 3fd2a03

Please sign in to comment.