Exemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->categoryRepository->delete($id);
     Flash::info('Category deleted');
     return redirect()->back();
 }
Exemplo n.º 2
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(CategoryRepository $categoryRepository)
 {
     $category = $categoryRepository->delete($this->id);
     return true;
 }