Skip to content

Commit e68ac77

Browse files
authored
Merge pull request #24 from bagwaa/feature-allow-publishing-of-migrations
publish package migration into project migrations
2 parents c60ee27 + d4c90bd commit e68ac77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LaravelJobStatusServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public function boot()
1818
{
1919
$this->loadMigrationsFrom(__DIR__ . '/migrations');
2020

21+
$this->publishes([
22+
__DIR__ . '/migrations/' => database_path('migrations')
23+
], 'migrations');
24+
2125
/** @var JobStatus $entityClass */
2226
$entityClass = app()->getAlias(JobStatus::class);
2327

@@ -60,7 +64,7 @@ private function updateJobStatus(Job $job, array $data)
6064
try {
6165
$payload = $job->payload();
6266
$jobStatus = unserialize($payload['data']['command']);
63-
67+
6468
if (!is_callable([$jobStatus, 'getJobStatusId'])) {
6569
return null;
6670
}

0 commit comments

Comments
 (0)