Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 15, 2020. It is now read-only.

Commit 069ae15

Browse files
Ensure package migration files are published separately
1 parent 1047e56 commit 069ae15

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

‎src/CloudinaryServiceProvider.php‎

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function boot()
3030
{
3131
$this->bootMacros();
3232
$this->bootResources();
33-
$this->bootMigrations();
3433
$this->bootDirectives();
3534
$this->bootComponents();
3635
$this->bootCommands();
@@ -73,18 +72,6 @@ protected function bootResources()
7372
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'cloudinary');
7473
}
7574

76-
/**
77-
* Boot the package migrations.
78-
*
79-
* @return void
80-
*/
81-
protected function bootMigrations()
82-
{
83-
if ($this->app->runningInConsole()) {
84-
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
85-
}
86-
}
87-
8875
/**
8976
* Boot the package directives.
9077
*
@@ -143,9 +130,16 @@ protected function bootPublishing()
143130

144131
$this->publishes(
145132
[
146-
$config => config_path('cloudinary.php')
133+
$config => $this->app->configPath('cloudinary.php'),
147134
]
148135
);
136+
137+
$this->publishes(
138+
[
139+
__DIR__.'/../database/migrations' => $this->app->databasePath('migrations'),
140+
],
141+
'laravel-cloudinary-migrations'
142+
);
149143
}
150144
}
151145

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /