コード例 #1
0
 /**
  *
  * @param $id
  * @return Response
  */
 public function destroy($id)
 {
     $transaction = Property::findOrFail($id);
     $transaction->delete();
     return \Response::json(['success' => true, 'message' => 'Property Deleted.', 'data' => []]);
 }
コード例 #2
0
 public static function getOne($id)
 {
     return Property::findOrFail($id);
 }