This repository was archived by the owner on Jul 15, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments