コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     return Response::json($this->repository->delete($id));
 }
コード例 #2
0
 public function test_get_all()
 {
     echo "\n" . get_class($this->repo) . "\n";
     $products = $this->repo->getAll();
     $this->assertTrue(is_array($products));
 }