File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,30 @@ public function register(): void
26
26
public function boot (): void
27
27
{
28
28
$ this ->_loadMigrations ();
29
+ $ this ->_loadPublished ();
29
30
}
30
31
31
32
private function _loadMigrations (): void
32
33
{
33
34
$ this ->loadMigrationsFrom (__DIR__ . '/../Database/migrations ' );
34
35
}
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
+ }
35
55
}
You can’t perform that action at this time.
0 commit comments