Skip to content

Commit

Permalink
Merge pull request #24 from bagwaa/feature-allow-publishing-of-migrat…
Browse files Browse the repository at this point in the history
…ions

publish package migration into project migrations
  • Loading branch information
imTigger authored Jan 28, 2019
2 parents c60ee27 + d4c90bd commit e68ac77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LaravelJobStatusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public function boot()
{
$this->loadMigrationsFrom(__DIR__ . '/migrations');

$this->publishes([
__DIR__ . '/migrations/' => database_path('migrations')
], 'migrations');

/** @var JobStatus $entityClass */
$entityClass = app()->getAlias(JobStatus::class);

Expand Down Expand Up @@ -60,7 +64,7 @@ private function updateJobStatus(Job $job, array $data)
try {
$payload = $job->payload();
$jobStatus = unserialize($payload['data']['command']);

if (!is_callable([$jobStatus, 'getJobStatusId'])) {
return null;
}
Expand Down

0 comments on commit e68ac77

Please sign in to comment.