Build import job API endpoint.

This commit is contained in:
James Cole
2018-12-08 08:22:53 +01:00
parent 00fb809ab9
commit 3b15415a1b
6 changed files with 289 additions and 4 deletions

View File

@@ -170,6 +170,16 @@ class ImportJobRepository implements ImportJobRepositoryInterface
return $result;
}
/**
* Return all import jobs.
*
* @return Collection
*/
public function get(): Collection
{
return $this->user->importJobs()->get();
}
/**
* Return all attachments for job.
*