Example #1
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $libraryRepository)
 {
     return $libraryRepository->paginated(new PaginationParameters($this->params['page'], $this->params['limit']), new FilterParameters($this->params['filters']), new SortParameters($this->params['sort']), ['resource']);
 }
Example #2
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $libraryRepository)
 {
     $library = $libraryRepository->delete($this->id);
     return true;
 }
Example #3
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $libraryRepository)
 {
     $library = $libraryRepository->save($this->params);
     return $library;
 }
Example #4
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $librarRepository)
 {
     $library = $librarRepository->update($this->id, $this->params);
     return true;
 }