Skip to content

Commit c645f10

Browse files
committed
private function _loadPublished()
1 parent 7b5d9b0 commit c645f10

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/ServiceProvider/MetaboxServiceProvider.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,30 @@ public function register(): void
2626
public function boot(): void
2727
{
2828
$this->_loadMigrations();
29+
$this->_loadPublished();
2930
}
3031

3132
private function _loadMigrations(): void
3233
{
3334
$this->loadMigrationsFrom(__DIR__ . '/../Database/migrations');
3435
}
36+
37+
private function _loadPublished(): void
38+
{
39+
$this->publishes([
40+
__DIR__.'/../Traits' => app_path('Traits/')
41+
],'LaravelMetaboxTrait');
42+
43+
$this->publishes([
44+
__DIR__.'/../Models' => app_path('Models/')
45+
],'LaravelMetaboxModel');
46+
47+
$this->publishes([
48+
__DIR__.'/../Database/migrations' => database_path('migrations')
49+
], 'LaravelMetaboxMigration');
50+
51+
$this->publishes([
52+
__DIR__.'/../Database/factories' => database_path('factories')
53+
], 'LaravelMetaboxFactory');
54+
}
3555
}

0 commit comments

Comments
 (0)