예제 #1
0
파일: Test.php 프로젝트: gitfreengers/larus
 public function total()
 {
     $test = Test::all()->count();
     return $test;
 }
예제 #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $test = Test::find($id);
     $test->delete();
     $affectedRows = 1;
     return $affectedRows;
 }