コード例 #1
0
 /**
  * Remove the specified Container from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $container = $this->containerRepository->find($id);
     if (empty($container)) {
         Flash::error('Container not found');
         return redirect(route('containers.index'));
     }
     $this->containerRepository->delete($id);
     Flash::success('Container deleted successfully.');
     return redirect(route('containers.index'));
 }