/**
  * 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']);
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $libraryRepository)
 {
     $library = $libraryRepository->delete($this->id);
     return true;
 }
Beispiel #3
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $libraryRepository)
 {
     $library = $libraryRepository->save($this->params);
     return $library;
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(LibraryRepository $librarRepository)
 {
     $library = $librarRepository->update($this->id, $this->params);
     return true;
 }